Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: 8250: 8250_core: Fix irq name for 8250 serial IRQ

Using dev_name() as IRQ name during request_irq() might be misleading in
case of serial over PCI. Therefore identify serial port IRQ using
uart_port's name field. This will help mapping IRQs to appropriate
ttySN(where N is the serial port index) instances.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Vignesh R and committed by
Greg Kroah-Hartman
b2c663d1 f7048b15

+1 -1
+1 -1
drivers/tty/serial/8250/8250_core.c
··· 218 218 spin_unlock_irq(&i->lock); 219 219 irq_flags |= up->port.irqflags; 220 220 ret = request_irq(up->port.irq, serial8250_interrupt, 221 - irq_flags, dev_name(up->port.dev), i); 221 + irq_flags, up->port.name, i); 222 222 if (ret < 0) 223 223 serial_do_unlink(i, up); 224 224 }