Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752920AbaKYNPv (ORCPT ); Tue, 25 Nov 2014 08:15:51 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:37144 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751944AbaKYNPq (ORCPT ); Tue, 25 Nov 2014 08:15:46 -0500 From: George Cherian To: , , , , CC: , , , , , , , , , , , , , , , George Cherian Subject: [PATCH 03/19] usb: host: xhci-plat: Add support to pass XHCI_DRD_SUPPORT quirk Date: Tue, 25 Nov 2014 18:41:39 +0530 Message-ID: <1416921115-10467-4-git-send-email-george.cherian@ti.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1416921115-10467-1-git-send-email-george.cherian@ti.com> References: <1416921115-10467-1-git-send-email-george.cherian@ti.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Extend the platform data to pass XHCI_DRD_SUPPORT quirk to the xhci driver. Signed-off-by: George Cherian --- drivers/usb/host/xhci-plat.c | 4 ++++ include/linux/usb/xhci_pdriver.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 3d78b0c..2c42273 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -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 diff --git a/include/linux/usb/xhci_pdriver.h b/include/linux/usb/xhci_pdriver.h index 376654b..539c2d8 100644 --- a/include/linux/usb/xhci_pdriver.h +++ b/include/linux/usb/xhci_pdriver.h @@ -22,6 +22,7 @@ */ struct usb_xhci_pdata { unsigned usb3_lpm_capable:1; + unsigned usb_drd_support:1; }; #endif /* __USB_CORE_XHCI_PDRIVER_H */ -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/