mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
PCI/MSI: Use msi_domain_info:: Bus_token
Set the bus token in the msi_domain_info structure and let the core code handle the update. Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://lore.kernel.org/r/20221111122014.352437595@linutronix.de
This commit is contained in:
parent
22db089a44
commit
38c0c10ae6
1 changed files with 3 additions and 8 deletions
|
@ -162,8 +162,6 @@ struct irq_domain *pci_msi_create_irq_domain(struct fwnode_handle *fwnode,
|
||||||
struct msi_domain_info *info,
|
struct msi_domain_info *info,
|
||||||
struct irq_domain *parent)
|
struct irq_domain *parent)
|
||||||
{
|
{
|
||||||
struct irq_domain *domain;
|
|
||||||
|
|
||||||
if (WARN_ON(info->flags & MSI_FLAG_LEVEL_CAPABLE))
|
if (WARN_ON(info->flags & MSI_FLAG_LEVEL_CAPABLE))
|
||||||
info->flags &= ~MSI_FLAG_LEVEL_CAPABLE;
|
info->flags &= ~MSI_FLAG_LEVEL_CAPABLE;
|
||||||
|
|
||||||
|
@ -178,13 +176,10 @@ struct irq_domain *pci_msi_create_irq_domain(struct fwnode_handle *fwnode,
|
||||||
|
|
||||||
/* PCI-MSI is oneshot-safe */
|
/* PCI-MSI is oneshot-safe */
|
||||||
info->chip->flags |= IRQCHIP_ONESHOT_SAFE;
|
info->chip->flags |= IRQCHIP_ONESHOT_SAFE;
|
||||||
|
/* Let the core update the bus token */
|
||||||
|
info->bus_token = DOMAIN_BUS_PCI_MSI;
|
||||||
|
|
||||||
domain = msi_create_irq_domain(fwnode, info, parent);
|
return msi_create_irq_domain(fwnode, info, parent);
|
||||||
if (!domain)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
irq_domain_update_bus_token(domain, DOMAIN_BUS_PCI_MSI);
|
|
||||||
return domain;
|
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(pci_msi_create_irq_domain);
|
EXPORT_SYMBOL_GPL(pci_msi_create_irq_domain);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue