usb: gadget: pch_udc: enable MSI if hardware supports
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 18 Mar 2016 14:55:36 +0000 (16:55 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 18 Apr 2016 12:23:37 +0000 (15:23 +0300)
Try to enable MSI in case hardware supports it. At least Intel Quark is
known SoC which indeed does.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/pch_udc.c

index 82e01f8995c567d212d61a830b6c71bc1e15d19c..787f459e9e90a9c1c457119265fe16a155516f09 100644 (file)
@@ -3132,6 +3132,8 @@ static int pch_udc_probe(struct pci_dev *pdev,
        if (pch_udc_pcd_init(dev))
                return -ENODEV;
 
+       pci_enable_msi(pdev);
+
        retval = devm_request_irq(&pdev->dev, pdev->irq, pch_udc_isr,
                                  IRQF_SHARED, KBUILD_MODNAME, dev);
        if (retval) {