summaryrefslogtreecommitdiff
path: root/ipc/ipc_sysctl.c
diff options
context:
space:
mode:
authorZachary Zhang <zhangzg@marvell.com>2017-09-13 18:21:39 +0200
committerMark Brown <broonie@kernel.org>2017-09-13 09:37:49 -0700
commit6fd6fd68c9e2f3a206a098ef57b1d5548f9d00d1 (patch)
treea20e91cefa04a6c9bf78ac5027958fca23c5b6ae /ipc/ipc_sysctl.c
parent747e1f60470b975363cbbfcde0c41a3166391be5 (diff)
spi: armada-3700: Fix padding when sending not 4-byte aligned data
In 4-byte transfer mode, extra padding/dummy bytes '0xff' would be sent in write operation if TX data is not 4-byte aligned since the SPI data register is always shifted out as whole 4 bytes. Fix this by using the header count feature that allows to transfer 0 to 4 bytes. Use it to actually send the first 1 to 3 bytes of data before the rest of the buffer that will hence be 4-byte aligned. Signed-off-by: Zachary Zhang <zhangzg@marvell.com> Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'ipc/ipc_sysctl.c')
0 files changed, 0 insertions, 0 deletions