Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1586814pxb; Tue, 8 Feb 2022 23:13:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwylotkL1ldMpWGAoofYL7DhWV5RWJS8+dX63RFHnM/NTfCyRCuuKC9x75oo1/gb+jEHrax X-Received: by 2002:a62:bd0c:: with SMTP id a12mr861195pff.26.1644390798715; Tue, 08 Feb 2022 23:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644390798; cv=none; d=google.com; s=arc-20160816; b=mMlVXbtNH22/PvS/W7GNW+k0YfF0IeY89KohRxH0MrN4uwQPdstL9ozDoPinvkGCzZ vFexWuNZ6zw3kplszSNnxs9YgoLSHbjwNt5bWgYfyTcPfhZU8IMLKz8J59g5VYQJZ7Tc eBhre0Jfn4vU6X7aBRjwBnflLwL4hka0JP9jPBxfBrRPM4CCyZIgqd9CUKmPrwa+xb9w moKeWCQBW2JwiHg8LJ0P1ReWSZE0hoObu7Ht0cwUyhXEM64SsqdHEpEMdbeJL7mAIwWL EfWa+a6TJshrinNRFlj89lETKPRUyjjQEKHS8vkockoG4v8RepDFWVuqt8+pdUGIAZhW IU8Q== 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:dkim-signature; bh=t7mBU3OIW9zUsoI4m3O9deHOGzDBQMQXNUzMzVojWrs=; b=bwKEy6tLivpY6UhBfZrMAXCz4CRufpZcGYaa3EoW/ab0V++A8Q71cqe5Y1YDr+XBJQ 4dXH64Ak8r0d/mQJwr/agtXuvJXkGlVLhM6VLWHxNJBuiDXa4qo2oH7n89FEocZH8GKI 8Mn01hm67giYOfAjzWFEtAskByxMdspuu8hi5DMuu6bjFUobjluG916Nef4YH0iuKehQ aHcq8D8D1wjy7t9wRU+j1vPjWcSBkg0T3uB8/2dhpxAHKyJc43lh6rZn6ZfJj4C0lWjh Wsw9iRGNE/UA8t+z7k/pmk+jboYRgG/GLsTXP7CpcbH1MOLjOCMoBbtNvg+JhNAJD6ve zGAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uN9p3Waz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l19si17569557plg.511.2022.02.08.23.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 23:13:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uN9p3Waz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C1D5C1038D9; Tue, 8 Feb 2022 22:30:34 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348452AbiBHHh7 (ORCPT + 99 others); Tue, 8 Feb 2022 02:37:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346472AbiBHHh6 (ORCPT ); Tue, 8 Feb 2022 02:37:58 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96248C0401F4; Mon, 7 Feb 2022 23:37:57 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 25AC0615DC; Tue, 8 Feb 2022 07:37:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D15AEC340ED; Tue, 8 Feb 2022 07:37:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644305876; bh=jCqEF148ccWzh0I4aTqkCNTCIq5H5g9nqJjNydsQbQ8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uN9p3WazGl53qw4M9VNwJO8ZRkgkySxIicVKaGBLXUeXK86MhKCG6J/ThjV6oubzY R4yk5KKIXmf3ad7kE4UB6L9T+k1HPwQDEOt/xTbWZ4ME/B7p4rq1owyeB7cTAPVn+n 8kC3lY7qWJKFK5d991L6XEoK9/nrECqWnAxbyLYU= Date: Tue, 8 Feb 2022 08:37:52 +0100 From: Greg Kroah-Hartman To: Neal Liu Cc: Alan Stern , Bjorn Helgaas , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Tao Ren , BMC-SW@aspeedtech.com Subject: Re: [PATCH] usb: ehci: add pci device support for Aspeed platforms Message-ID: References: <20220208062927.3527137-1-neal_liu@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220208062927.3527137-1-neal_liu@aspeedtech.com> X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 02:29:27PM +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 > --- > drivers/usb/host/ehci-pci.c | 6 ++++++ > include/linux/pci_ids.h | 3 +++ > 2 files changed, 9 insertions(+) > > diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c > index e87cf3a00fa4..a91b25d216ae 100644 > --- a/drivers/usb/host/ehci-pci.c > +++ b/drivers/usb/host/ehci-pci.c > @@ -222,6 +222,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 */ > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h > index aad54c666407..410b395fe56c 100644 > --- a/include/linux/pci_ids.h > +++ b/include/linux/pci_ids.h > @@ -3096,4 +3096,7 @@ > > #define PCI_VENDOR_ID_NCUBE 0x10ff > > +#define PCI_VENDOR_ID_ASPEED 0x1a03 > +#define PCI_DEVICE_ID_ASPEED_EHCI 0x2603 Please read the top of this file, this does not need to be added here. thanks, greg k-h