Commit c3c9cee5 authored by Neal Liu's avatar Neal Liu Committed by Greg Kroah-Hartman

usb: ehci: add pci device support for Aspeed platforms

Enable Aspeed quirks in commit 7f2d7378 ("usb: ehci:
handshake CMD_RUN instead of STS_HALT") to support Aspeed
ehci-pci device.
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarNeal Liu <neal_liu@aspeedtech.com>
Link: https://lore.kernel.org/r/20220208101657.76459-1-neal_liu@aspeedtech.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5726079c
...@@ -21,6 +21,9 @@ static const char hcd_name[] = "ehci-pci"; ...@@ -21,6 +21,9 @@ static const char hcd_name[] = "ehci-pci";
/* defined here to avoid adding to pci_ids.h for single instance use */ /* defined here to avoid adding to pci_ids.h for single instance use */
#define PCI_DEVICE_ID_INTEL_CE4100_USB 0x2e70 #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 #define PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC 0x0939
static inline bool is_intel_quark_x1000(struct pci_dev *pdev) static inline bool is_intel_quark_x1000(struct pci_dev *pdev)
...@@ -222,6 +225,12 @@ static int ehci_pci_setup(struct usb_hcd *hcd) ...@@ -222,6 +225,12 @@ static int ehci_pci_setup(struct usb_hcd *hcd)
ehci->has_synopsys_hc_bug = 1; ehci->has_synopsys_hc_bug = 1;
} }
break; 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 */ /* optional debug port, normally in the first BAR */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment