summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi-nor/Kconfig
diff options
context:
space:
mode:
authorVignesh Raghavendra <vigneshr@ti.com>2019-08-06 10:40:39 +0530
committerTudor Ambarus <tudor.ambarus@microchip.com>2019-08-12 10:53:48 +0300
commitf173f26a4d543fa57e6ed9505bbbbf9bec61f544 (patch)
treef5fbd6bedb3a629bdde7c11193f737819cabeb12 /drivers/mtd/spi-nor/Kconfig
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff)
downloadlwn-f173f26a4d543fa57e6ed9505bbbbf9bec61f544.tar.gz
lwn-f173f26a4d543fa57e6ed9505bbbbf9bec61f544.zip
mtd: spi-nor: always use bounce buffer for register read/writes
spi-mem layer expects all buffers passed to it to be DMA'able. But spi-nor layer mostly allocates buffers on stack for reading/writing to registers and therefore are not DMA'able. Introduce bounce buffer to be used to read/write to registers. This ensures that buffer passed to spi-mem layer during register read/writes is DMA'able. With this change nor->cmd-buf is no longer used, so drop it. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Diffstat (limited to 'drivers/mtd/spi-nor/Kconfig')
0 files changed, 0 insertions, 0 deletions