Skip to content

Commit

Permalink
serial/pci_16550: make sure that interrupts are disabled during init
Browse files Browse the repository at this point in the history
Make sure that interrups are disabled during initialization.
This is a proper fix for an unexpected MSI interrupt for PCI serial driver.

Signed-off-by: p-szafonimateusz <[email protected]>
  • Loading branch information
szafonimateusz-mi authored and anjiahao1 committed Oct 8, 2024
1 parent eea807f commit da39a63
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/serial/uart_pci_16550.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,14 +595,6 @@ static int pci_u16550_initialize(FAR struct pci_u16550_priv_s *priv,

priv->common.irq = pci_get_irq(dev);

/* Attach interrupts early to prevent unexpected isr fault */

ret = irq_attach(priv->common.irq, priv->common.ops->isr, dev);
if (ret != OK)
{
pcierr("Failed to attach irq %d\n", ret);
}

return OK;
}

Expand Down

0 comments on commit da39a63

Please sign in to comment.