From mboxrd@z Thu Jan 1 00:00:00 1970 From: george.cherian@ti.com (George Cherian) Date: Tue, 25 Nov 2014 18:41:41 +0530 Subject: [PATCH 05/19] usb: host: xhci-plat: Add support to pass XHCI_NEEDS_LHC_RESET quirk In-Reply-To: <1416921115-10467-1-git-send-email-george.cherian@ti.com> References: <1416921115-10467-1-git-send-email-george.cherian@ti.com> Message-ID: <1416921115-10467-6-git-send-email-george.cherian@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Extend the platform data to pass XHCI_NEEDS_LHC_RESET quirk to the xhci driver. Signed-off-by: George Cherian --- drivers/usb/host/xhci-plat.c | 3 +++ include/linux/usb/xhci_pdriver.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 2c42273..d8d024d 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -31,6 +31,9 @@ static void xhci_plat_quirks(struct device *dev, struct xhci_hcd *xhci) if (pdata->usb_drd_support) xhci->quirks |= XHCI_DRD_SUPPORT; + + if (pdata->usb_needs_lhc_reset) + xhci->quirks |= XHCI_NEEDS_LHC_RESET; /* * 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 diff --git a/include/linux/usb/xhci_pdriver.h b/include/linux/usb/xhci_pdriver.h index 539c2d8..8ef7321 100644 --- a/include/linux/usb/xhci_pdriver.h +++ b/include/linux/usb/xhci_pdriver.h @@ -23,6 +23,7 @@ struct usb_xhci_pdata { unsigned usb3_lpm_capable:1; unsigned usb_drd_support:1; + unsigned usb_needs_lhc_reset:1; }; #endif /* __USB_CORE_XHCI_PDRIVER_H */ -- 1.8.3.1