Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3463696pxb; Mon, 4 Apr 2022 17:48:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztjwBb0YO5I/qMOGAnbJhiY+gej/yXBt/3kfOl7rOdFF0uKsBFikpU6FyFScMEBpS5CaHJ X-Received: by 2002:a63:6dcc:0:b0:398:a0c9:7a77 with SMTP id i195-20020a636dcc000000b00398a0c97a77mr683880pgc.117.1649119707640; Mon, 04 Apr 2022 17:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649119707; cv=none; d=google.com; s=arc-20160816; b=azh92bsgMU/0MXqZXheHZlSThZGCqx4OVP6fub/PxjLeQXkaBlKljorCJYC3CQspf4 Ozu6zc1ek2C1/8l5/WfDm2mO7nj1PjnF9tBewGr3VLP9x1rYsPQRbWW2R661X//K6lus 6bSzI40223KZNhcYRPDoDVavDyjj1pyTB6Gpb4EldzSGKJJwnK3q02kxNk1DLGoRFz0i vyMsS8LvOxMLOhHIYzH5hyxzKEUR3it6brvtX252xIlDFchgUJ25tiq8c/dWBHMwiejv fL444IEjH/YWlodA1bhGBtamqopix7j2FvZl6kAKlrhyqYVowlXymeyCXhwX+3VWesYY G9Lg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LVIov1NRAUJfbWB1qhJc7sgpYVXOHH09hKjqcCwVJ3M=; b=fS8Qgj/BjXxTNU21axDa9AAaahHvB37Cn7Gl68vBN0R5e0WzP2p0Hmip0UAFuVwUsM XDprGX69Vnp1DBiVamsMr/z3lpsoZ6/UlmS/+YmuNxgE5o68Sq9AuHFI4DVgFODTD7Jm b/XS58bYqe/IKSoHfFO2pgodqeFI3Egxnms/sQ5o04D84fh5ypO44B/HV0yDqN9qn741 xpSEZtC2xKl4iajXRY7g2lriFgDFLc2Q4Vzpyg/ZGbqS3jpITpo25ek303dpzImoLxJf t0VWShYqA8YBRKN/WL5UcbDdMQVVdaXDZdvU63/yD5qXZoOkCSjHZs1+nwYL9YrPxKD5 o06Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bnM4mdMX; 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=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w15-20020a170902a70f00b0015445f2c18esi10363608plq.444.2022.04.04.17.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:48:27 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=bnM4mdMX; 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=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C77FD9EA8; Mon, 4 Apr 2022 16:59:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347767AbiDAOf7 (ORCPT + 99 others); Fri, 1 Apr 2022 10:35:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347403AbiDAOcb (ORCPT ); Fri, 1 Apr 2022 10:32:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9BE01EA5F0; Fri, 1 Apr 2022 07:28:46 -0700 (PDT) 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 6445A61CB1; Fri, 1 Apr 2022 14:28:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D554FC36AE2; Fri, 1 Apr 2022 14:28:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648823325; bh=DhyRSmYkqVp0mD9tp8xB/iWyiPaIGIOPXQyeKGIgjq8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bnM4mdMXnlUpBnPiv4K5nZ8GfR9kYUrVVRWlTod9ecjVSJAUDV/fOy+EV8a4Ulds2 kJ2qIE4uTKQvu+F88zZ4EEXysnoGeJ5pU/m49ccOZ6VKLn4ZsPwyfXvExg7TXEt+kI 51/9MoxT9q4HFOErgZ1mdmf67274NlpE2Dpxq5nNVpVG8Vo4xH99T3O4SQ3zEqLm2n FCprEbR9+ybzEcKP0B+nCmqdVeEqWCze1Fcv6vrTTD2WyPGe08+LGpMQyyL0tQc4ll gviXdWrLxNhrUra7Jiu3sPVRmSW1qIgHR8L8JbtVppU2iaYl4BAkVZoO3cLgrtrpek 28n28m21CnRKg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Neal Liu , Alan Stern , Greg Kroah-Hartman , Sasha Levin , linux-usb@vger.kernel.org Subject: [PATCH AUTOSEL 5.17 058/149] usb: ehci: add pci device support for Aspeed platforms Date: Fri, 1 Apr 2022 10:24:05 -0400 Message-Id: <20220401142536.1948161-58-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220401142536.1948161-1-sashal@kernel.org> References: <20220401142536.1948161-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 From: Neal Liu [ Upstream commit c3c9cee592828528fd228b01d312c7526c584a42 ] Enable Aspeed quirks in commit 7f2d73788d90 ("usb: ehci: handshake CMD_RUN instead of STS_HALT") to support Aspeed ehci-pci device. Acked-by: Alan Stern Signed-off-by: Neal Liu Link: https://lore.kernel.org/r/20220208101657.76459-1-neal_liu@aspeedtech.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- 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.34.1