spi: atmel: Use core SPI_MASTER_MUST_[RT]X handling
authorNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 24 Nov 2016 11:24:58 +0000 (12:24 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 25 Nov 2016 13:07:09 +0000 (13:07 +0000)
commit7910d9af000acc155745e44be55a5d0dc9e26ce7
treeed2041231dfd74acdee85c2c12d074d7d10d9760
parentce24a513fb142e855b4aa77f91334c2f203c0d99
spi: atmel: Use core SPI_MASTER_MUST_[RT]X handling

We need both RX and TX data for each transfer in any case (PIO, PDC, DMA).
So convert the driver to the core dummy buffer handling with the
SPI_MASTER_MUST_RX/SPI_MASTER_MUST_TX infrastructure.

This move changes the maximum PDC/DMA buffer handling to 65535 bytes
instead of a single page and sets master->max_dma_len to this value.

All dummy buffer management is removed from the driver.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-atmel.c