[PATCH v1 3/5] usb: gadget: pch_udc: enable MSI if hardware supports

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 drivers/usb/gadget/udc/pch_udc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c
index 49fd97f..7736799 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) {
-- 
2.7.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux