Skip to contentSkip to conversation

dmaengine: imx-sdma: Add MODULE_FIRMWARE

DISCUSSION Vinod Koul 1 participant 1 message Dec 18, 2017 dmaengine

lore
Share & tools
lore

Vinod Koul

author
#0 lore raw
Quoted 2 lines · Nicolas Chauvet

This avoid the following error when using an initramfs on wandboard quad Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2

Are you sure this fixes with latest kernel as the firmware in kernel has been removed with commit 5620a0d1aacd: ("firmware: delete in-kernel firmware")

Quoted 23 lines
---
 drivers/dma/imx-sdma.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/dma/imx-sdma.c +6 -0
index 2184881afe76..e7db24c67030 100644
@@ -1939,4 +1939,10 @@ module_platform_driver(sdma_driver);
 
 MODULE_AUTHOR("Sascha Hauer, Pengutronix <[email protected]>");
 MODULE_DESCRIPTION("i.MX SDMA driver");
+#if IS_ENABLED(CONFIG_SOC_IMX6Q)
+MODULE_FIRMWARE("imx/sdma/sdma-imx6q.bin");
+#endif
+#if IS_ENABLED(CONFIG_SOC_IMX7D)
+MODULE_FIRMWARE("imx/sdma/sdma-imx7d.bin");
+#endif
 MODULE_LICENSE("GPL");
Signature · 1 line
2.13.6