aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/udc/pch_udc.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2016-03-18 16:55:36 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-04-18 15:23:37 +0300
commitc7b640d2a21c2dd724cd8aa9f0b78d6a3d61d776 (patch)
tree78ce98798262f3a0fc1027a8cd3fc72fa440b0be /drivers/usb/gadget/udc/pch_udc.c
parentusb: gadget: pch_udc: convert to devres API (diff)
downloadlinux-dev-c7b640d2a21c2dd724cd8aa9f0b78d6a3d61d776.tar.xz
linux-dev-c7b640d2a21c2dd724cd8aa9f0b78d6a3d61d776.zip
usb: gadget: pch_udc: enable MSI if hardware supports
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>
Diffstat (limited to 'drivers/usb/gadget/udc/pch_udc.c')
-rw-r--r--drivers/usb/gadget/udc/pch_udc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c
index 82e01f8995c5..787f459e9e90 100644
--- a/drivers/usb/gadget/udc/pch_udc.c
+++ b/drivers/usb/gadget/udc/pch_udc.c
@@ -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) {