Skip to content

Commit 50d16ca

Browse files
Alexander Steingregkh
authored andcommitted
pch_uart: Add uart device to irq name
This will additionally show the specific UART device instead of the general module name. This cames in handy so check for the interupts of a specific device if there are several of them. Signed-off-by: Alexander Stein <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a798c10 commit 50d16ca

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/tty/serial/pch_uart.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ struct eg20t_port {
257257
dma_addr_t rx_buf_dma;
258258

259259
struct dentry *debugfs;
260+
#define IRQ_NAME_SIZE 17
261+
char irq_name[IRQ_NAME_SIZE];
260262

261263
/* protect the eg20t_port private structure and io access to membase */
262264
spinlock_t lock;
@@ -1343,7 +1345,7 @@ static int pch_uart_startup(struct uart_port *port)
13431345
return ret;
13441346

13451347
ret = request_irq(priv->port.irq, pch_uart_interrupt, IRQF_SHARED,
1346-
KBUILD_MODNAME, priv);
1348+
priv->irq_name, priv);
13471349
if (ret < 0)
13481350
return ret;
13491351

@@ -1818,6 +1820,10 @@ static struct eg20t_port *pch_uart_init_port(struct pci_dev *pdev,
18181820
priv->port.line = board->line_no;
18191821
priv->trigger = PCH_UART_HAL_TRIGGER_M;
18201822

1823+
snprintf(priv->irq_name, IRQ_NAME_SIZE,
1824+
KBUILD_MODNAME ":" PCH_UART_DRIVER_DEVICE "%d",
1825+
priv->port.line);
1826+
18211827
spin_lock_init(&priv->port.lock);
18221828

18231829
pci_set_drvdata(pdev, priv);

0 commit comments

Comments
 (0)