]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/xen/xen-pciback/pciback_ops.c
xen/pciback: Don't setup an fake IRQ handler for SR-IOV devices.
[mv-sheeva.git] / drivers / xen / xen-pciback / pciback_ops.c
index 6c398fde7a831ba11e098628b1430a6975026a72..28a2a558483168dfef4c7dfeb3575ee9ba688151 100644 (file)
@@ -48,6 +48,13 @@ void pciback_control_isr(struct pci_dev *dev, int reset)
        if (enable)
                dev_data->irq = dev->irq;
 
+       /*
+        * SR-IOV devices in all use MSI-X and have no legacy
+        * interrupts, so inhibit creating a fake IRQ handler for them.
+        */
+       if (dev_data->irq == 0)
+               goto out;
+
        dev_dbg(&dev->dev, "%s: #%d %s %s%s %s-> %s\n",
                dev_data->irq_name,
                dev_data->irq,