Skip to contentSkip to conversation

dmaengine: imx-sdma: Improve the SDMA irq name

PATCH Applied Fabio Estevam 2 participants 2 messages Jun 23, 2022 – Jul 1, 2022

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 dmaengine: imx-sdma: Improve the SDMA irq name

From: Fabio Estevam <[email protected]>

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.

---
 drivers/dma/imx-sdma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/dma/imx-sdma.c +2 -2
index 900cafdaf359..9710b2ba5978 100644
@@ -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;
 
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 7 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

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.

Applied, thanks

Signature · 1 line
~Vinod