aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Auger <[email protected]>2017-01-19 20:57:58 +0000
committerWill Deacon <[email protected]>2017-01-23 15:00:45 +0000
commit88156f00904183d99e19269fbdb5cb56dc1522c3 (patch)
tree429d710f0f576aafa78470bda9dd8df9da26bdee
parent631a9639ac413da6242cb15558ebd661cf633622 (diff)
genirq/msi: Set IRQ_DOMAIN_FLAG_MSI on MSI domain creation
Now we have a flag value indicating an IRQ domain implements MSI, let's set it on msi_create_irq_domain(). Signed-off-by: Eric Auger <[email protected]> Reviewed-by: Marc Zyngier <[email protected]> Tested-by: Tomasz Nowicki <[email protected]> Tested-by: Bharat Bhushan <[email protected]> Signed-off-by: Will Deacon <[email protected]>
-rw-r--r--kernel/irq/msi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c
index ee230063f033..ddc2f5427f75 100644
--- a/kernel/irq/msi.c
+++ b/kernel/irq/msi.c
@@ -270,8 +270,8 @@ struct irq_domain *msi_create_irq_domain(struct fwnode_handle *fwnode,
if (info->flags & MSI_FLAG_USE_DEF_CHIP_OPS)
msi_domain_update_chip_ops(info);
- return irq_domain_create_hierarchy(parent, 0, 0, fwnode,
- &msi_domain_ops, info);
+ return irq_domain_create_hierarchy(parent, IRQ_DOMAIN_FLAG_MSI, 0,
+ fwnode, &msi_domain_ops, info);
}
int msi_domain_prepare_irqs(struct irq_domain *domain, struct device *dev,