Re: [PATCH v3 1/3] mtd: spi-nor: always use bounce buffer for register read/writes

2019-07-31 Thread Vignesh Raghavendra
Hi Boris On 01/08/19 11:16 AM, Boris Brezillon wrote: > On Thu, 1 Aug 2019 10:00:50 +0530 > Vignesh Raghavendra wrote: > >> 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

Re: [PATCH v3 1/3] mtd: spi-nor: always use bounce buffer for register read/writes

2019-07-31 Thread Boris Brezillon
On Thu, 1 Aug 2019 10:00:50 +0530 Vignesh Raghavendra wrote: > 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

[PATCH v3 1/3] mtd: spi-nor: always use bounce buffer for register read/writes

2019-07-31 Thread Vignesh Raghavendra
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