Skip to content

Commit

Permalink
Merge branch 'pci/msi'
Browse files Browse the repository at this point in the history
  - Set IRQCHIP_ONESHOT_SAFE for PCI MSI irqchips (Heiner Kallweit)

* pci/msi:
  PCI/MSI: Set IRQCHIP_ONESHOT_SAFE for PCI-MSI irqchips
  • Loading branch information
bjorn-helgaas committed Aug 15, 2018
2 parents a40f72d + 923aa4c commit 11c1a8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/pci/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,9 @@ struct irq_domain *pci_msi_create_irq_domain(struct fwnode_handle *fwnode,
if (IS_ENABLED(CONFIG_GENERIC_IRQ_RESERVATION_MODE))
info->flags |= MSI_FLAG_MUST_REACTIVATE;

/* PCI-MSI is oneshot-safe */
info->chip->flags |= IRQCHIP_ONESHOT_SAFE;

domain = msi_create_irq_domain(fwnode, info, parent);
if (!domain)
return NULL;
Expand Down

0 comments on commit 11c1a8e

Please sign in to comment.