[PATCH] mtd: nand: pxa3xx_nand: fix dmaengine initialization

Brian Norris computersforpeace at gmail.com
Fri Mar 4 19:07:33 PST 2016


On Fri, Feb 12, 2016 at 11:29:04PM +0100, Robert Jarzmik wrote:
> When the driver is initialized in a pure device-tree platform, the
> driver's probe fails allocating the dma channel :
> [  525.624435] pxa3xx-nand 43100000.nand: no resource defined for data DMA
> [  525.632088] pxa3xx-nand 43100000.nand: alloc nand resource failed
> 
> The reason is that the DMA IO resource is not acquired through platform
> resources but by OF bindings.
> 
> Fix this by ensuring that DMA IO resources are only queried in the non
> device-tree case.
> 
> Fixes: 8f5ba31aa565 ("mtd: nand: pxa3xx-nand: switch to dmaengine")
> Signed-off-by: Robert Jarzmik <robert.jarzmik at free.fr>

Applied to l2-mtd.git



More information about the linux-mtd mailing list