答复: [PATCH] MTD: atmel_nand: Add DMA support to access Nandflash
From: Xu, Hong <hidden>
Date: 2011-01-18 06:17:17
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:
quoted
Some SAM9 chips have the ability to perform DMA between CPU and SMC
controller.
quoted
This patch adds DMA support for SAM9RL, SAM9G45, SSAM9G46,AM9M10, SAM9M11.
quoted
quoted
Signed-off-by: Hong Xu <redacted>
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>