]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: spi_amd: Add HIDDMA basic read support
authorRaju Rangoju <Raju.Rangoju@amd.com>
Wed, 25 Sep 2024 13:36:44 +0000 (19:06 +0530)
committerMark Brown <broonie@kernel.org>
Sun, 29 Sep 2024 23:11:56 +0000 (01:11 +0200)
commit6c30eee359127c31cd8c6b586c8c3ced9f50f74b
tree9937dc9ad36f80bfe2d0eb055c57035f8c2d55e1
parent9674f1694e644aa5cc50e1009481cb4c5b4e8f8f
spi: spi_amd: Add HIDDMA basic read support

SPI index mode has hardware limitation of reading only 64 bytes per
transaction due to fixed number of FIFO registers. This constraint leads
to performance issues when reading data from NAND/NOR flash devices, as the
controller must issue multiple requests to read 64-byte chunks, even if the
slave can send up to 2 or 4 KB in single transaction. The AMD HID2 SPI
controller supports DMA mode, which allows reading up to 4 KB of data in
single transaction. This patch introduces changes to implement HID2 DMA
read support for the HID2 SPI controller.

Co-developed-by: Krishnamoorthi M <krishnamoorthi.m@amd.com>
Signed-off-by: Krishnamoorthi M <krishnamoorthi.m@amd.com>
Co-developed-by: Akshata MukundShetty <akshata.mukundshetty@amd.com>
Signed-off-by: Akshata MukundShetty <akshata.mukundshetty@amd.com>
Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
Link: https://patch.msgid.link/20240925133644.2922359-9-Raju.Rangoju@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-amd.c