[PATCH linux dev-4.7] tty: aspeed-vuart: Add IRQF_SHARED to flags

Joel Stanley joel at jms.id.au
Fri Mar 24 12:39:06 AEDT 2017

All of the LPC devices share an IRQ line. When other LPC devices (such
as the BT) have enabled IRQs we receive them unexpectedly in the vuart
driver before it is ready.

And the IRQF_SHARED flag to the vuart driver so we ignore interrupts
until we are ready to handle them.

Reported-by: Anton Blanchard <anton at samba.org>
Signed-off-by: Joel Stanley <joel at jms.id.au>
 drivers/tty/serial/aspeed-vuart.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/aspeed-vuart.c b/drivers/tty/serial/aspeed-vuart.c
index 020c8159d25d..42ccb380af41 100644
--- a/drivers/tty/serial/aspeed-vuart.c
+++ b/drivers/tty/serial/aspeed-vuart.c
@@ -238,6 +238,7 @@ static int ast_vuart_probe(struct platform_device *pdev)
 		port.port.line = rc;
 	port.port.irq = irq_of_parse_and_map(np, 0);
+	port.port.irqflags = IRQF_SHARED;
 	port.port.iotype = UPIO_MEM;
 	if (of_property_read_u32(np, "reg-io-width", &prop) == 0) {
 		switch (prop) {

More information about the openbmc mailing list