答复: [PATCH] MTD: atmel_nand: Add DMA support to access Nandflash

Xu, Hong Hong.Xu at atmel.com
Tue Jan 18 01:17:17 EST 2011


Hi Ryan,

 

Thanks for your careful review.

 

> -----Original Message-----

> From: Ryan Mallon [mailto:ryan at bluewatersys.com]

> Sent: Tuesday, January 18, 2011 11:08 AM

> To: Xu, Hong

> Cc: linux-mtd at lists.infradead.org; linux-arm-kernel at lists.infradead.org;

> linux-kernel at vger.kernel.org; jamie at jamieiles.com; jacmet at sunsite.dk;

> Ferre, Nicolas

> Subject: Re: [PATCH] MTD: atmel_nand: Add DMA support to access Nandflash

> 

> On 01/18/2011 03:56 PM, Hong Xu wrote:

> > Some SAM9 chips have the ability to perform DMA between CPU and SMC

> controller.

> > This patch adds DMA support for SAM9RL, SAM9G45, SSAM9G46,AM9M10, SAM9M11.

> >

> > Signed-off-by: Hong Xu <hong.xu at atmel.com>

> 

> Couple more notes below. I think the normal exit path for

> atmel_nand_dma_op needs to call dma_unmap_single. The other suggestions

> below are just stylistic.

> 

> Also, you still need a change to Kconfig to add the dependency on the

> AT_HDMAC driver otherwise users without that option selected will get

> build errors.

> 

 

Not all SAM9 chips have AT_HDMAC. I tried building the system successfully without

AT_HDMAC and even without DMADEVICES :-)

 

A new patch will be sent soon regarding to your other comments.

 

BR,

Hong

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110118/f0bd08b8/attachment-0001.html>


More information about the linux-arm-kernel mailing list