summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-zynqmp-gqspi.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 18:37:49 +0200
commit6fd6fd68c9e2f3a206a098ef57b1d5548f9d00d1 (patch)
treea20e91cefa04a6c9bf78ac5027958fca23c5b6ae /drivers/spi/spi-zynqmp-gqspi.c
parentspi: armada-3700: Fix failing commands with quad-SPI (diff)
downloadlinux-6fd6fd68c9e2f3a206a098ef57b1d5548f9d00d1.tar.xz
linux-6fd6fd68c9e2f3a206a098ef57b1d5548f9d00d1.zip
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 '')
0 files changed, 0 insertions, 0 deletions