]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine i.MX SDMA: use request_firmware_nowait
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 25 Aug 2011 09:03:37 +0000 (11:03 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 29 Aug 2011 14:38:53 +0000 (20:08 +0530)
commita8faec84b5ed6f6a50899366b7f2ce7d0547164b
tree9c94c61f0a903ea8a08f6ca085ccca5b83a190b6
parent5386d2000621168a1459086272195ed58c98d779
dmaengine i.MX SDMA: use request_firmware_nowait

The firmware blob may not be available when the driver
probes. Instead of blocking the whole kernel use
request_firmware_nowait() and continue without firmware.
The ROM scripts can already be used then if available.
For the devicetree case the ROM scripts are not available,
still the probe function should not block. The driver
will be unusable in this case, but we have no way of
detecting this properly. The configuration of the dma
channels will fail, so nothing bad should happen.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/imx-sdma.c