Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp904689pxb; Tue, 8 Feb 2022 05:16:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDIPmGQ89d0v/Rg5gQrHk0QZKtHHHU+dvo85XXlAxZNkaZPq3k8gh9l+FkqAivJ1a+OxFg X-Received: by 2002:a17:902:f70a:: with SMTP id h10mr4207216plo.127.1644326172971; Tue, 08 Feb 2022 05:16:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644326172; cv=none; d=google.com; s=arc-20160816; b=vseIu0ipan0Pps0wF80/CtXPOHWxN+z2e/MlhQ3CIlaxhApi858402CDhoVMLV2bt0 GSsnXFXmo8xgvJMye85uYL8BzsTrXYIMmM7xUp+8QZn8LYb29ZB1ZjaroKFWSG9dsqMM hT72Pmd4dvxZ0p0fSfAzKW2U+janwuEIEUrFlzcb6JKXZq9ouibud0io0uVRm28Gu2FN t3z7xtB3mY3R8CFtXYiRfTBFHB1KwCp6dc3xnY4D7t4xO6u6K1lZscuj+PxlGfOJDUcD 1j3F+Pjnt09+DrItlKb6auGpwladA77Ypi9/YNfzNuKzkTTevAN3UOadQ8gCW11mtsHV pnWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=YtnkNa6XbWc1B1NC8ITj0JSWnEsv6KQQQReXPRysnHU=; b=kEm0jkfDynlKTeBHXTSssaUFmbIqeksTNKF7NjPKEwSU36KWniBJ13rr1AjDO7EwRN Kxgt43LdddAzddPMdMr86u/IoV7fVaSgMkAEheP9PS5RWcYKZeXbkINpGnB5mlqLkayq lDG0H43ayWMRuGNn5y9tUXljtO28051Yg9sfLO0rc3d4VsZhagudiZ4jjZpp/pjWV1qH 1gktK3ugC5cK8sOIakBbfVgedt8aENP0PtFmEZtzdQ3ohsnHfS/HZr2kxy9WZ2tD4HJa Mar5JrjuWQAG0WBjIapvVk9jUGSgFi3GcOQkSIBmb4Ze45vEUUrDgbMtEhu7BnSWqu4G 9h5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f71si13134663pgc.681.2022.02.08.05.15.59; Tue, 08 Feb 2022 05:16:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358100AbiBHL0o (ORCPT + 99 others); Tue, 8 Feb 2022 06:26:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239900AbiBHKRX (ORCPT ); Tue, 8 Feb 2022 05:17:23 -0500 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B739DC03FEC0; Tue, 8 Feb 2022 02:17:19 -0800 (PST) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 218A8sLM044192; Tue, 8 Feb 2022 18:08:54 +0800 (GMT-8) (envelope-from neal_liu@aspeedtech.com) Received: from localhost.localdomain (192.168.10.10) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 8 Feb 2022 18:17:02 +0800 From: Neal Liu To: Alan Stern , Greg Kroah-Hartman , , CC: Neal Liu , Tao Ren , Subject: [PATCH v2] usb: ehci: add pci device support for Aspeed platforms Date: Tue, 8 Feb 2022 18:16:57 +0800 Message-ID: <20220208101657.76459-1-neal_liu@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.10.10] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 218A8sLM044192 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable Aspeed quirks in commit 7f2d73788d90 ("usb: ehci: handshake CMD_RUN instead of STS_HALT") to support Aspeed ehci-pci device. Signed-off-by: Neal Liu --- drivers/usb/host/ehci-pci.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index e87cf3a00fa4..638f03b89739 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c @@ -21,6 +21,9 @@ static const char hcd_name[] = "ehci-pci"; /* defined here to avoid adding to pci_ids.h for single instance use */ #define PCI_DEVICE_ID_INTEL_CE4100_USB 0x2e70 +#define PCI_VENDOR_ID_ASPEED 0x1a03 +#define PCI_DEVICE_ID_ASPEED_EHCI 0x2603 + /*-------------------------------------------------------------------------*/ #define PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC 0x0939 static inline bool is_intel_quark_x1000(struct pci_dev *pdev) @@ -222,6 +225,12 @@ static int ehci_pci_setup(struct usb_hcd *hcd) ehci->has_synopsys_hc_bug = 1; } break; + case PCI_VENDOR_ID_ASPEED: + if (pdev->device == PCI_DEVICE_ID_ASPEED_EHCI) { + ehci_info(ehci, "applying Aspeed HC workaround\n"); + ehci->is_aspeed = 1; + } + break; } /* optional debug port, normally in the first BAR */ -- 2.25.1