Commit 7a9d6a28 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Greg Kroah-Hartman

genirq/msi: Fix broken debug output

commit 4364e1a2 upstream.

virq is not required to be the same for all msi descs. Use the base irq number
from the desc in the debug printk.
Reported-by: default avatarIngo Molnar <mingo@kernel.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7d05ad5e
...@@ -352,6 +352,7 @@ int msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev, ...@@ -352,6 +352,7 @@ int msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev,
ops->msi_finish(&arg, 0); ops->msi_finish(&arg, 0);
for_each_msi_entry(desc, dev) { for_each_msi_entry(desc, dev) {
virq = desc->irq;
if (desc->nvec_used == 1) if (desc->nvec_used == 1)
dev_dbg(dev, "irq %d for MSI\n", virq); dev_dbg(dev, "irq %d for MSI\n", virq);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment