@@ -27,6 +27,10 @@ static struct hc_driver __read_mostly xhci_plat_hc_driver;
static void xhci_plat_quirks(struct device *dev, struct xhci_hcd *xhci)
{
+ struct usb_xhci_pdata *pdata = dev_get_platdata(dev);
+
+ if (pdata->usb_drd_support)
+ xhci->quirks |= XHCI_DRD_SUPPORT;
/*
* As of now platform drivers don't provide MSI support so we ensure
* here that the generic code does not try to make a pci_dev from our
@@ -22,6 +22,7 @@
*/
struct usb_xhci_pdata {
unsigned usb3_lpm_capable:1;
+ unsigned usb_drd_support:1;
};
#endif /* __USB_CORE_XHCI_PDRIVER_H */
Extend the platform data to pass XHCI_DRD_SUPPORT quirk to the xhci driver. Signed-off-by: George Cherian <george.cherian@ti.com> --- drivers/usb/host/xhci-plat.c | 4 ++++ include/linux/usb/xhci_pdriver.h | 1 + 2 files changed, 5 insertions(+)