tty: amba-pl011: allow shared interrupt
authorDoug Berger <opendmb@gmail.com>
Mon, 13 May 2019 18:59:45 +0000 (20:59 +0200)
committerpopcornmix <popcornmix@gmail.com>
Thu, 13 Jun 2019 10:45:13 +0000 (11:45 +0100)
The PL011 register space includes all necessary status bits to
determine whether a device instance requires handling in response
to an interrupt. Therefore, multiple instances of the device could
be serviced by a single shared interrupt, which is the case on BCM7211.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/tty/serial/amba-pl011.c

index 6f15f32..1121df5 100644 (file)
@@ -1735,7 +1735,8 @@ static int pl011_allocate_irq(struct uart_amba_port *uap)
 {
        pl011_write(uap->im, uap, REG_IMSC);
 
-       return request_irq(uap->port.irq, pl011_int, 0, "uart-pl011", uap);
+       return request_irq(uap->port.irq, pl011_int, IRQF_SHARED, "uart-pl011",
+                          uap);
 }
 
 /*