Commit 50d16ca2 authored by Alexander Stein's avatar Alexander Stein Committed by Greg Kroah-Hartman

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: default avatarAlexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a798c10f
...@@ -257,6 +257,8 @@ struct eg20t_port { ...@@ -257,6 +257,8 @@ struct eg20t_port {
dma_addr_t rx_buf_dma; dma_addr_t rx_buf_dma;
struct dentry *debugfs; struct dentry *debugfs;
#define IRQ_NAME_SIZE 17
char irq_name[IRQ_NAME_SIZE];
/* protect the eg20t_port private structure and io access to membase */ /* protect the eg20t_port private structure and io access to membase */
spinlock_t lock; spinlock_t lock;
...@@ -1343,7 +1345,7 @@ static int pch_uart_startup(struct uart_port *port) ...@@ -1343,7 +1345,7 @@ static int pch_uart_startup(struct uart_port *port)
return ret; return ret;
ret = request_irq(priv->port.irq, pch_uart_interrupt, IRQF_SHARED, ret = request_irq(priv->port.irq, pch_uart_interrupt, IRQF_SHARED,
KBUILD_MODNAME, priv); priv->irq_name, priv);
if (ret < 0) if (ret < 0)
return ret; return ret;
...@@ -1818,6 +1820,10 @@ static struct eg20t_port *pch_uart_init_port(struct pci_dev *pdev, ...@@ -1818,6 +1820,10 @@ static struct eg20t_port *pch_uart_init_port(struct pci_dev *pdev,
priv->port.line = board->line_no; priv->port.line = board->line_no;
priv->trigger = PCH_UART_HAL_TRIGGER_M; priv->trigger = PCH_UART_HAL_TRIGGER_M;
snprintf(priv->irq_name, IRQ_NAME_SIZE,
KBUILD_MODNAME ":" PCH_UART_DRIVER_DEVICE "%d",
priv->port.line);
spin_lock_init(&priv->port.lock); spin_lock_init(&priv->port.lock);
pci_set_drvdata(pdev, priv); pci_set_drvdata(pdev, priv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment