Re: [PATCH] spi: erase pointer to drvdata on removal

2013-01-13 Thread Mark Brown
On Thu, Nov 01, 2012 at 02:05:36PM -0400, Vivien Didelot wrote: As for i2c-core, let the SPI core handle the removal of the device's drvdata, after a remove() or a probe() failure. Any driver that notices this change is buggy, the driver shouldn't use a drvdata value that it didn't set. I had

[PATCH] MAINTAINERS: Add myself as a backup maintainer for SPI

2013-01-13 Thread Mark Brown
Grant said he would find it helpful for me to continue handling some of the legwork for SPI so add myself to MAINTAINERS so I get CCed on patches. Signed-off-by: Mark Brown broo...@opensource.wolfsonmicro.com --- MAINTAINERS |1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS

[v4 PATCH 02/12] spi/atmel_spi: call unmapping on transfers buffers

2013-01-13 Thread Wenyou Yang
From: Nicolas Ferre nicolas.fe...@atmel.com Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Cc: grant.lik...@secretlab.ca Cc: spi-devel-general@lists.sourceforge.net --- drivers/spi/spi-atmel.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[v4 PATCH 04/12] spi/atmel_spi: add flag to controller data for lock operations

2013-01-13 Thread Wenyou Yang
From: Nicolas Ferre nicolas.fe...@atmel.com Will allow to drop the lock during DMA operations. Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Cc: grant.lik...@secretlab.ca Cc: spi-devel-general@lists.sourceforge.net --- drivers/spi/spi-atmel.c | 31 +++ 1

[v4 PATCH 01/12] spi/atmel_spi: add physical base address

2013-01-13 Thread Wenyou Yang
From: Nicolas Ferre nicolas.fe...@atmel.com Needed for future use with dmaengine enabled driver. Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Cc: grant.lik...@secretlab.ca Cc: spi-devel-general@lists.sourceforge.net --- drivers/spi/spi-atmel.c |2 ++ 1 file changed, 2 insertions(+)

[v4 PATCH 03/12] spi/atmel_spi: status information passed through controller data

2013-01-13 Thread Wenyou Yang
From: Nicolas Ferre nicolas.fe...@atmel.com The status of transfer is stored in controller data structure so that it can be used not only by atmel_spi_msg_done() function. This will be useful for upcoming dmaengine enabled driver. Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Cc:

[v4 PATCH 08/12] spi/atmel_spi: correct 16 bits transfers using PIO

2013-01-13 Thread Wenyou Yang
From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com Cc: grant.lik...@secretlab.ca Cc: spi-devel-general@lists.sourceforge.net --- drivers/spi/spi-atmel.c | 46 +- 1 file changed, 37 insertions(+), 9

[v4 PATCH 09/12] spi/atmel_spi: correct 16 bits transfer with DMA

2013-01-13 Thread Wenyou Yang
From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com Cc: grant.lik...@secretlab.ca Cc: spi-devel-general@lists.sourceforge.net --- drivers/spi/spi-atmel.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git

[v4 PATCH 06/12] spi/atmel_spi: add dmaengine support

2013-01-13 Thread Wenyou Yang
From: Nicolas Ferre nicolas.fe...@atmel.com Add dmaengine support. For different SoC, the has_dma_support is used to select the transfer mode: dmaengine or PDC. For the dmaengine transfer mode, if it fails to config dmaengine, or if the message len less than 16 bytes, it will use the PIO