]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/dma/edma.c
ARM/dmaengine: edma: Move of_dma_controller_register to the dmaengine driver
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 14 Oct 2015 11:42:47 +0000 (14:42 +0300)
committerVinod Koul <vinod.koul@intel.com>
Wed, 14 Oct 2015 14:27:11 +0000 (19:57 +0530)
commitdc9b60552f6a6a56b1defb88aa9f7f1498fcc045
tree9fc445b22bce2f9517ad8998d992f63da26bee42
parentd4cb7f404247173e2c760a01bf06fd1016a8b0d4
ARM/dmaengine: edma: Move of_dma_controller_register to the dmaengine driver

If the of_dma_controller is registered in the non dmaengine driver we could
have race condition:
the of_dma_controller has been registered, but the dmaengine driver is not
yet probed. Drivers requesting DMA channels during this window will fail
since we do not yet have dmaengine drivers registered.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
arch/arm/common/edma.c
drivers/dma/edma.c