]> 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)
commit3d50ba164fa05b105e435ba357d366f41e7cb5c0
tree9c94c61f0a903ea8a08f6ca085ccca5b83a190b6
parentfec0b020547fec419590784297bde50214e0859a
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