Skip to content

Commit a7cd3cf

Browse files
nullr0utevinodkoul
authored andcommitted
dmaengine: imx-sdma: Allow imx8m for imx7 FW revs
The revision of the imx-sdma IP that is in the i.MX8M series is the same is that as that in the i.MX7 series but the imx7d MODULE_FIRMWARE directive is wrapped in a condiditional which means it's not defined when built for aarch64 SOC_IMX8M platforms and hence you get the following errors when the driver loads on imx8m devices: imx-sdma 302c0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2 imx-sdma 302c0000.dma-controller: external firmware not found, using ROM firmware Add the SOC_IMX8M into the check so the firmware can load on i.MX8. Fixes: 1474d48 ("arm64: dts: imx8mq: Add SDMA nodes") Fixes: 941acd5 ("dmaengine: imx-sdma: Only check ratio on parts that support 1:1") Signed-off-by: Peter Robinson <[email protected]> Cc: [email protected] # v5.2+ Reviewed-by: Fabio Estevam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 646728d commit a7cd3cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/imx-sdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2346,7 +2346,7 @@ MODULE_DESCRIPTION("i.MX SDMA driver");
23462346
#if IS_ENABLED(CONFIG_SOC_IMX6Q)
23472347
MODULE_FIRMWARE("imx/sdma/sdma-imx6q.bin");
23482348
#endif
2349-
#if IS_ENABLED(CONFIG_SOC_IMX7D)
2349+
#if IS_ENABLED(CONFIG_SOC_IMX7D) || IS_ENABLED(CONFIG_SOC_IMX8M)
23502350
MODULE_FIRMWARE("imx/sdma/sdma-imx7d.bin");
23512351
#endif
23522352
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)