]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: cadence: Add Marvell SDMA operations
authorWitold Sadowski <wsadowski@marvell.com>
Wed, 24 Jul 2024 15:47:34 +0000 (08:47 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 29 Jul 2024 00:19:27 +0000 (01:19 +0100)
commit75128e2a14a9f443e8debdd30445f5934b5a7c83
tree28fe9ca0ee1dc86b0fb0a5690e7465fdd3e7b6f8
parent26d34fdc49712ddbd42b11102f5d9d78a0f42097
spi: cadence: Add Marvell SDMA operations

In Marvell xSPI implementation any access to SDMA register will result
in 8 byte SPI data transfer. Reading less data(eg. 1B) will result in
losing remaining bytes. To avoid that read/write 8 bytes into temporary
buffer, and read/write whole temporary buffer into SDMA.

Signed-off-by: Witold Sadowski <wsadowski@marvell.com>
Link: https://patch.msgid.link/20240724154739.582367-5-wsadowski@marvell.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-xspi.c