Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1577981pxb; Tue, 8 Feb 2022 22:56:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoCUI9YDYm5jRiF0z4JzFQR1JIPtwqjvujFfLVZ1SdhwJHeXA9nhcaV2YqSup903RkfZe9 X-Received: by 2002:a63:7e1b:: with SMTP id z27mr784449pgc.345.1644389786580; Tue, 08 Feb 2022 22:56:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644389786; cv=none; d=google.com; s=arc-20160816; b=j2dkP5dN2pkbmrsRPB0Z9HWNdyDJNuR73bgqQrSR/ju3v/8F10Ckl5oAIhsw4G5cA7 hLvk2laGFQRMFBTdlc38Co/A13w1jdPnbgE0L2/0BLobj9s29ulzAgwYYZdRDbWss63N b4WXZwGA5xU7Lsa19I8I8jbnieMbNMZ9CDOnRJFFsS6T95gCVM2GbU3wApXI3mmijMme cZCS94aTsz4/1vNwrKGw1BkHcAIuo6SL3DQFTJtXgJmMr7zo+5AyD2X83wuh/FoVkVEa sYnyiJzFl9zQMNXGdGwUoLWFxq89kxFJJ/nMeOyhnJ3P32XxLbM2BF2ZQvTWmiiek+Ub dZqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Qaa5pFdua8oMVC7hpA50ZGISXkypxBLEObTXObRZnYQ=; b=SIwO14oo98QS1sxTiy8ctyFh+OfKD+HC6r1jRAlZRzLeYoCf+EWvFEozxXvuLOLtZJ hJraVUBgFho5Y8ixNSOu865ebI5lfUGMJp/3uN07XZTy3Q2twHHVRxggBe/PVgnmpwi/ KpPqaTZn665Ge9kdbdnVWBGQgkwgwVIn0/yO8dqPThXQUr9aFMuEgFuLMUsUVgdb5LXa D2J45L5tpgOtJfagcn31WDEHpk34vTnfvl7mFBdI3qIHbwTrLQk4QX0x+fJcxVpLKJRF 09nyn82D/C7sG1a8sQOX9d/HhG+orjnWzCN0z+HBSBV2dFNe2NIwIr3xRX6ppT7YLmrl 3oxw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h16si15064319pfv.189.2022.02.08.22.56.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 22:56:26 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 15A90E06DFB4; Tue, 8 Feb 2022 22:36:38 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380302AbiBHP1F (ORCPT + 99 others); Tue, 8 Feb 2022 10:27:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380187AbiBHP0z (ORCPT ); Tue, 8 Feb 2022 10:26:55 -0500 X-Greylist: delayed 400 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 08 Feb 2022 07:26:54 PST Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 7A888C061577 for ; Tue, 8 Feb 2022 07:26:54 -0800 (PST) Received: (qmail 529214 invoked by uid 1000); 8 Feb 2022 10:20:13 -0500 Date: Tue, 8 Feb 2022 10:20:13 -0500 From: Alan Stern To: Neal Liu Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Tao Ren , BMC-SW@aspeedtech.com Subject: Re: [PATCH v2] usb: ehci: add pci device support for Aspeed platforms Message-ID: References: <20220208101657.76459-1-neal_liu@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220208101657.76459-1-neal_liu@aspeedtech.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Tue, Feb 08, 2022 at 06:16:57PM +0800, Neal Liu wrote: > 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 > --- Acked-by: Alan Stern > 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 >