Re: [PATCH 1/2] spi: davinci: Use SPI framework to handle DMA mapping

2017-02-06 Thread Mark Brown
On Mon, Feb 06, 2017 at 03:57:07PM +0100, Fabien Parent wrote: > This commit updates the davinci SPI driver in order to use the SPI > framework to handle the DMA mapping of buffers coming from an upper > layer. This claims to be using the framework to do DMA mapping but... > + if

Re: [PATCH 1/2] spi: davinci: Use SPI framework to handle DMA mapping

2017-02-06 Thread Mark Brown
On Mon, Feb 06, 2017 at 03:57:07PM +0100, Fabien Parent wrote: > This commit updates the davinci SPI driver in order to use the SPI > framework to handle the DMA mapping of buffers coming from an upper > layer. This claims to be using the framework to do DMA mapping but... > + if

[PATCH 1/2] spi: davinci: Use SPI framework to handle DMA mapping

2017-02-06 Thread Fabien Parent
Uppers layers like MTD can pass vmalloc'd buffers to the SPI driver, and the current implementation will fail to map these kind of buffers. The SPI framework is able to detect the best way to handle and map buffers. This commit updates the davinci SPI driver in order to use the SPI framework to

[PATCH 1/2] spi: davinci: Use SPI framework to handle DMA mapping

2017-02-06 Thread Fabien Parent
Uppers layers like MTD can pass vmalloc'd buffers to the SPI driver, and the current implementation will fail to map these kind of buffers. The SPI framework is able to detect the best way to handle and map buffers. This commit updates the davinci SPI driver in order to use the SPI framework to