From: Alan Stern <stern@rowland.harvard.edu>
To: Neal Liu <neal_liu@aspeedtech.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Tao Ren <rentao.bupt@gmail.com>,
BMC-SW@aspeedtech.com
Subject: Re: [PATCH v2] usb: ehci: add pci device support for Aspeed platforms
Date: Tue, 8 Feb 2022 10:20:13 -0500 [thread overview]
Message-ID: <YgKKLb7cXGJQuKiO@rowland.harvard.edu> (raw)
In-Reply-To: <20220208101657.76459-1-neal_liu@aspeedtech.com>
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 <neal_liu@aspeedtech.com>
> ---
Acked-by: Alan Stern <stern@rowland.harvard.edu>
> 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
>
prev parent reply other threads:[~2022-02-08 15:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-08 10:16 Neal Liu
2022-02-08 15:20 ` Alan Stern [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YgKKLb7cXGJQuKiO@rowland.harvard.edu \
--to=stern@rowland.harvard.edu \
--cc=BMC-SW@aspeedtech.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=neal_liu@aspeedtech.com \
--cc=rentao.bupt@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®