|
@@ -1273,12 +1273,19 @@ struct irq_domain *pci_msi_create_irq_domain(struct device_node *node,
|
|
struct msi_domain_info *info,
|
|
struct msi_domain_info *info,
|
|
struct irq_domain *parent)
|
|
struct irq_domain *parent)
|
|
{
|
|
{
|
|
|
|
+ struct irq_domain *domain;
|
|
|
|
+
|
|
if (info->flags & MSI_FLAG_USE_DEF_DOM_OPS)
|
|
if (info->flags & MSI_FLAG_USE_DEF_DOM_OPS)
|
|
pci_msi_domain_update_dom_ops(info);
|
|
pci_msi_domain_update_dom_ops(info);
|
|
if (info->flags & MSI_FLAG_USE_DEF_CHIP_OPS)
|
|
if (info->flags & MSI_FLAG_USE_DEF_CHIP_OPS)
|
|
pci_msi_domain_update_chip_ops(info);
|
|
pci_msi_domain_update_chip_ops(info);
|
|
|
|
|
|
- return msi_create_irq_domain(node, info, parent);
|
|
|
|
|
|
+ domain = msi_create_irq_domain(node, info, parent);
|
|
|
|
+ if (!domain)
|
|
|
|
+ return NULL;
|
|
|
|
+
|
|
|
|
+ domain->bus_token = DOMAIN_BUS_PCI_MSI;
|
|
|
|
+ return domain;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|