Re: [PATCH] dmaengine: pl330: Correct device assignment.

2014-11-06 Thread Vinod Koul
On Thu, Nov 06, 2014 at 11:39:47AM +, Andrew Jackson wrote: > Commit f6f2421c0a1c removed pl330_info structure by embedding it into > pl330_dmac structure, but did not ensure that the dmac->ddma.dev > pointer gets initialised before use. When dma_alloc_coherent() gets > called on arm64 a WARN()

[PATCH] dmaengine: pl330: Correct device assignment.

2014-11-06 Thread Andrew Jackson
Commit f6f2421c0a1c removed pl330_info structure by embedding it into pl330_dmac structure, but did not ensure that the dmac->ddma.dev pointer gets initialised before use. When dma_alloc_coherent() gets called on arm64 a WARN() gets triggered due to dev being NULL. [ cut here ]