dmaengine: imx-sdma: Improve the SDMA irq name
authorFabio Estevam <festevam@denx.de>
Thu, 23 Jun 2022 12:33:53 +0000 (09:33 -0300)
committerVinod Koul <vkoul@kernel.org>
Fri, 1 Jul 2022 16:19:17 +0000 (21:49 +0530)
On SoCs with several SDMA instances, such as i.MX8M for example,
all the SDMA related interrupts appear with the same "sdma" name.

Improve the SDMA irq name by associating it with the SDMA instance
via dev_name(), so that the SDMA irq names can be unique.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Link: https://lore.kernel.org/r/20220623123353.2570410-1-festevam@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c

index 8535018ee7a2e14ecf4bbae9878949b0c8ea1335..43d78e98a9128ffb1957e5b495efbd02ec58bc0b 100644 (file)
@@ -2183,8 +2183,8 @@ static int sdma_probe(struct platform_device *pdev)
        if (ret)
                goto err_clk;
 
-       ret = devm_request_irq(&pdev->dev, irq, sdma_int_handler, 0, "sdma",
-                              sdma);
+       ret = devm_request_irq(&pdev->dev, irq, sdma_int_handler, 0,
+                               dev_name(&pdev->dev), sdma);
        if (ret)
                goto err_irq;