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

2013-01-07 Thread Yang, Wenyou
t.lik...@secretlab.ca; spi-devel-gene...@lists.sourceforge.net > Subject: Re: [v3 PATCH 06/12] spi/atmel_spi: add dmaengine support > > On Mon, 2013-01-07 at 09:50 +0800, Wenyou Yang wrote: > > From: Nicolas Ferre > [] > > diff --git a/drivers/spi/spi-atmel.c b/drivers

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

2013-01-06 Thread Joe Perches
On Mon, 2013-01-07 at 09:50 +0800, Wenyou Yang wrote: > From: Nicolas Ferre [] > diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c [] > +static inline bool atmel_spi_use_dma(struct atmel_spi *as, > + struct spi_transfer *xfer) > +{ > + if ((as->use_dma)

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

2013-01-06 Thread Wenyou Yang
From: Nicolas Ferre 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 transfer mode. Signed-off-b