Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp755307pxb; Tue, 8 Feb 2022 01:31:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEDRpwJdJlU4BLr3aO06fEdOLWdariTohBZsH3oYjB+mnoUxjaAcWZHe5/jNz7W3RYliQ6 X-Received: by 2002:a17:907:70c9:: with SMTP id yk9mr2895516ejb.717.1644312717901; Tue, 08 Feb 2022 01:31:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644312717; cv=none; d=google.com; s=arc-20160816; b=IdfpuzjzvyUSt9l6v9ekiG9wwwH1QC5YDUuKIyjBJOiIoF11R7nnfNItmFlJnLUxm5 xWuXjvyK3Zskkwu5oeeCoknkjSqCxKN0FJb77/oUhZRBrUghXQgKyQ6S0OL5EfG7t9gs h4qr9pwShvi8ey+g9ED1QwPg6lE4osuLajuNH11H22x/uOEp79ijy8uypxrS3p2vl1KP h96SrrJ0/XD4vw4/omovebHjtkVVqvm42m9NqpxM7QSTscQEeKRs73PKS29mqC2yygl/ N1/qc87HNBLbRQSU63MIGDV/siR1zGt+q62Uj81OPbzuI2O04Hgo5iqRPccbYKJQ6v8h m85w== 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=vq3dSotiF7m2x3ABXnWMnNhlnQn2tG/d3mve7lMNQjo=; b=vFFxcIN+3DkOhvHyXgk1IVvail9XFr7Er3+a3kQnYbYy+oXdSslJTTUdidQXmgqDjX /I8eMTj5qYoClOBM6431QUxVukMT4BteUwpG+2xj6BFlgoq9U2YLzXw/mpb1Ex1qMrdk 5UX7TgsVJo09uxgNroLUJC8NCNGVvjmkuY6IhJUk6tvkb7ncyJL/HqEzw/vqEFCWuXhp 6ENhQ9Ad0GfzjB2f0joYWsMSs/aZ6ErT800PDas37iq1FeHlKCQP350n6l5yr7e3wMO7 lowIsQ59fqWh8sRGtzvcHeJxzBup8LBxchL2ZBe4/kOk0MxeeYMIvveaoa8ZJbv17isA K44A== 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 i7si3413130edq.53.2022.02.08.01.31.32; Tue, 08 Feb 2022 01:31:57 -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 S1347522AbiBHGes (ORCPT + 99 others); Tue, 8 Feb 2022 01:34:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbiBHGeq (ORCPT ); Tue, 8 Feb 2022 01:34:46 -0500 X-Greylist: delayed 292 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 07 Feb 2022 22:34:45 PST Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A147C0401EF; Mon, 7 Feb 2022 22:34:45 -0800 (PST) Received: from twspam01.aspeedtech.com (localhost [127.0.0.2] (may be forged)) by twspam01.aspeedtech.com with ESMTP id 2186Lll6023885; Tue, 8 Feb 2022 14:21:47 +0800 (GMT-8) (envelope-from neal_liu@aspeedtech.com) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 2186LPY6023863; Tue, 8 Feb 2022 14:21:25 +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 14:29:32 +0800 From: Neal Liu To: Alan Stern , Greg Kroah-Hartman , Bjorn Helgaas , , , CC: Neal Liu , Tao Ren , Subject: [PATCH] usb: ehci: add pci device support for Aspeed platforms Date: Tue, 8 Feb 2022 14:29:27 +0800 Message-ID: <20220208062927.3527137-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 2186LPY6023863 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 | 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 + #endif /* _LINUX_PCI_IDS_H */ -- 2.25.1