[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Dont call msi_unmap_pirq() if did not enabled msi
>>> Joe Jin <joe.jin@xxxxxxxxxx> 17.11.09 01:19 >>> >--- a/drivers/pci/msi-xen.c Fri Oct 23 10:07:22 2009 +0100 >+++ b/drivers/pci/msi-xen.c Tue Nov 17 08:16:42 2009 +0800 >@@ -673,6 +673,12 @@ > if (!pos) > return; > >+ if (!(dev->msi_enabled)) { >+ printk(KERN_INFO "PCI: %s: Device did not enabled MSI.\n", >+ pci_name(dev)); >+ return; >+ } >+ > pirq = dev->irq; > /* Restore dev->irq to its default pin-assertion vector */ > dev->irq = msi_dev_entry->default_irq; But shouldn't this happen before the CONFIG_XEN_PCIDEV_FRONTEND conditional block? This one also calls evtchn_map_pirq(..., 0), i.e. would also result in the storing of no_irq_chip. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |