diff mbox series

tty: serial: fsl_lpuart: Make interrupt name distinct

Message ID 20250205091007.4528-1-wahrenst@gmx.net (mailing list archive)
State New
Headers show
Series tty: serial: fsl_lpuart: Make interrupt name distinct | expand

Commit Message

Stefan Wahren Feb. 5, 2025, 9:10 a.m. UTC
SoCs like the i.MX93 have several lpuart interfaces, but fsl_lpuart
uses the driver name to request the IRQ. This makes it hard to
identify interfaces from outputs like /proc/interrupts .
So use the dev_name() for requesting instead.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
---
 drivers/tty/serial/fsl_lpuart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.34.1

Comments

Peng Fan Feb. 5, 2025, 10:24 a.m. UTC | #1
> Subject: [PATCH] tty: serial: fsl_lpuart: Make interrupt name distinct
> 
> SoCs like the i.MX93 have several lpuart interfaces, but fsl_lpuart uses
> the driver name to request the IRQ. This makes it hard to identify
> interfaces from outputs like /proc/interrupts .
> So use the dev_name() for requesting instead.
> 
> Signed-off-by: Stefan Wahren <wahrenst@gmx.net>

Reviewed-by: Peng Fan <peng.fan@nxp.com>
diff mbox series

Patch

diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c
index c91b9d9818cd..91d02c55c470 100644
--- a/drivers/tty/serial/fsl_lpuart.c
+++ b/drivers/tty/serial/fsl_lpuart.c
@@ -2954,7 +2954,7 @@  static int lpuart_probe(struct platform_device *pdev)
 		goto failed_attach_port;

 	ret = devm_request_irq(&pdev->dev, sport->port.irq, handler, 0,
-				DRIVER_NAME, sport);
+			       dev_name(&pdev->dev), sport);
 	if (ret)
 		goto failed_irq_request;