diff options
author | Alexander Stein <alexander.stein@systec-electronic.com> | 2014-03-25 09:05:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-24 18:52:30 -0400 |
commit | 50d16ca29bd2ccbca08e4f74fe1d9618c735c22f (patch) | |
tree | 00f637fa680fbbe59902a07d0bcb69b0812cf482 | |
parent | a798c10faf62a505d24e5f6213fbaf904a39623f (diff) |
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 <alexander.stein@systec-electronic.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/pch_uart.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 0931b3fe9edf..e194bb32b27b 100644 --- a/drivers/tty/serial/pch_uart.c +++ b/drivers/tty/serial/pch_uart.c | |||
@@ -257,6 +257,8 @@ struct eg20t_port { | |||
257 | dma_addr_t rx_buf_dma; | 257 | dma_addr_t rx_buf_dma; |
258 | 258 | ||
259 | struct dentry *debugfs; | 259 | struct dentry *debugfs; |
260 | #define IRQ_NAME_SIZE 17 | ||
261 | char irq_name[IRQ_NAME_SIZE]; | ||
260 | 262 | ||
261 | /* protect the eg20t_port private structure and io access to membase */ | 263 | /* protect the eg20t_port private structure and io access to membase */ |
262 | spinlock_t lock; | 264 | spinlock_t lock; |
@@ -1343,7 +1345,7 @@ static int pch_uart_startup(struct uart_port *port) | |||
1343 | return ret; | 1345 | return ret; |
1344 | 1346 | ||
1345 | ret = request_irq(priv->port.irq, pch_uart_interrupt, IRQF_SHARED, | 1347 | ret = request_irq(priv->port.irq, pch_uart_interrupt, IRQF_SHARED, |
1346 | KBUILD_MODNAME, priv); | 1348 | priv->irq_name, priv); |
1347 | if (ret < 0) | 1349 | if (ret < 0) |
1348 | return ret; | 1350 | return ret; |
1349 | 1351 | ||
@@ -1818,6 +1820,10 @@ static struct eg20t_port *pch_uart_init_port(struct pci_dev *pdev, | |||
1818 | priv->port.line = board->line_no; | 1820 | priv->port.line = board->line_no; |
1819 | priv->trigger = PCH_UART_HAL_TRIGGER_M; | 1821 | priv->trigger = PCH_UART_HAL_TRIGGER_M; |
1820 | 1822 | ||
1823 | snprintf(priv->irq_name, IRQ_NAME_SIZE, | ||
1824 | KBUILD_MODNAME ":" PCH_UART_DRIVER_DEVICE "%d", | ||
1825 | priv->port.line); | ||
1826 | |||
1821 | spin_lock_init(&priv->port.lock); | 1827 | spin_lock_init(&priv->port.lock); |
1822 | 1828 | ||
1823 | pci_set_drvdata(pdev, priv); | 1829 | pci_set_drvdata(pdev, priv); |