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

Joel Stanley joel at jms.id.au
Tue Mar 28 09:49:44 AEDT 2017


On Fri, Mar 24, 2017 at 12:09 PM, Joel Stanley <joel at jms.id.au> wrote:
> 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>

Applied to dev-4.7.

Cheers,

Joel

> ---
>  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) {
> --
> 2.11.0
>


More information about the openbmc mailing list