Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7413281imu; Thu, 31 Jan 2019 09:40:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN4A249YcBuvDfT4UspeDgcQf8ffYPWJWDdZJcHLJsQ4gBllJ+R2dYOg07enNm/SCQ9ob9OE X-Received: by 2002:a62:1c0a:: with SMTP id c10mr35564633pfc.213.1548956451747; Thu, 31 Jan 2019 09:40:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548956451; cv=none; d=google.com; s=arc-20160816; b=t6LuZN3vDUXj5qnU98+kiQTYRB8ATbaX/WaPZrohtlZsN6IoITnI3VdDnxf7km7gj9 3nDimfPIg957kbuBRgEECoYOoR1ElkEiE/2LaTJ1TK7sIMtZiTzdJHx99q3rJLutPZwL Viocd+ZISRf95pwzs3NJp+AVpWC5B4BJak9x3ey2XKAw5/Jf8ITL/k9Rbd7LZ/0wcNQN FWWnkKJ+BIRA1l+J2IaDFDNECTq2ymnGCKTkoTU+jAPLuyrEy8/tEF0us2SLw38xqO8g v+ZiysiOWM0p45n8kJSmWrJhkU7XPf1Gy3ncQ84KA/39uOEOZM70XnifPnO4klUZk8y+ NxzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=klYyyN8ww6sokjoQe0BzfiAIpvKWUcuzo7Pzg/f5nCQ=; b=GfpVXjQkvNy8Xp7bCitf+UpUr/ZtBe67VYZ83T6PuVKUx5chsXSCgOAweaqqm9Cp4/ N1DKjCgdZwwnN88/mWPUzDaxYPuyYPrHUoFcxVAfNHPng/j4U82IvFmTB6cR/cXzezdT mcLEy23Acx8GvNon6eBDrispyrTCAeCbUAGM2iuKdmDdawrSsd8dM1VY9z+G0YzRkBtJ 15vHs4GyTePcFcf9vMcIxGHr+slhk8tFX10iJDKa9LngvylDYQURmlMasXCR41InmB49 D2k6nXWWYRMp5fuX1xws+JQaMipVelf545BF5f6LNlJyj9NFmKZoIKcmqlBGLB20XVQY DDxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s35si4819448pgk.392.2019.01.31.09.40.36; Thu, 31 Jan 2019 09:40:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726540AbfAaRVg (ORCPT + 99 others); Thu, 31 Jan 2019 12:21:36 -0500 Received: from 36-231-44-189.dynamic-ip.hinet.net ([36.231.44.189]:40666 "EHLO E6440.gar.corp.intel.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725298AbfAaRVg (ORCPT ); Thu, 31 Jan 2019 12:21:36 -0500 X-Greylist: delayed 497 seconds by postgrey-1.27 at vger.kernel.org; Thu, 31 Jan 2019 12:21:35 EST Received: from E6440.gar.corp.intel.com (localhost [127.0.0.1]) by E6440.gar.corp.intel.com (Postfix) with ESMTP id 2FB1EC12EE; Fri, 1 Feb 2019 01:13:16 +0800 (CST) From: Harry Pan To: LKML Cc: gs0622@gmail.com, Harry Pan , mathias.nyman@intel.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org Subject: [PATCH] usb: xhci: pci: Enable Intel USB role mux on GLK platforms Date: Fri, 1 Feb 2019 01:13:12 +0800 Message-Id: <20190131171312.16955-1-harry.pan@intel.com> X-Mailer: git-send-email 2.18.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Like Apollo Lake, Gemini Lake support DRD in port 0, this patch enables the DRD support for GLK based on the EDS rev 2.2 vol #1 of section 3.8 of USB Controller. Signed-off-by: Harry Pan --- drivers/usb/host/xhci-pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index a9ec7051f286..49b438a3ccd4 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -41,6 +41,7 @@ #define PCI_DEVICE_ID_INTEL_BROXTON_B_XHCI 0x1aa8 #define PCI_DEVICE_ID_INTEL_APL_XHCI 0x5aa8 #define PCI_DEVICE_ID_INTEL_DNV_XHCI 0x19d0 +#define PCI_DEVICE_ID_INTEL_GLK_XHCI 0x31a8 #define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_2C_XHCI 0x15b5 #define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_4C_XHCI 0x15b6 #define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_2C_XHCI 0x15db @@ -194,7 +195,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |= XHCI_SSIC_PORT_UNUSED; if (pdev->vendor == PCI_VENDOR_ID_INTEL && (pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || - pdev->device == PCI_DEVICE_ID_INTEL_APL_XHCI)) + pdev->device == PCI_DEVICE_ID_INTEL_APL_XHCI || + pdev->device == PCI_DEVICE_ID_INTEL_GLK_XHCI)) xhci->quirks |= XHCI_INTEL_USB_ROLE_SW; if (pdev->vendor == PCI_VENDOR_ID_INTEL && (pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || -- 2.18.1