Skip to content

Commit 2aa10e2

Browse files
Neal-liugregkh
authored andcommitted
usb: ehci: add pci device support for Aspeed platforms
[ Upstream commit c3c9cee ] Enable Aspeed quirks in commit 7f2d737 ("usb: ehci: handshake CMD_RUN instead of STS_HALT") to support Aspeed ehci-pci device. Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Neal Liu <neal_liu@aspeedtech.com> Link: https://lore.kernel.org/r/20220208101657.76459-1-neal_liu@aspeedtech.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 9907305 commit 2aa10e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/usb/host/ehci-pci.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ static const char hcd_name[] = "ehci-pci";
2121
/* defined here to avoid adding to pci_ids.h for single instance use */
2222
#define PCI_DEVICE_ID_INTEL_CE4100_USB 0x2e70
2323

24+
#define PCI_VENDOR_ID_ASPEED 0x1a03
25+
#define PCI_DEVICE_ID_ASPEED_EHCI 0x2603
26+
2427
/*-------------------------------------------------------------------------*/
2528
#define PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC 0x0939
2629
static inline bool is_intel_quark_x1000(struct pci_dev *pdev)
@@ -222,6 +225,12 @@ static int ehci_pci_setup(struct usb_hcd *hcd)
222225
ehci->has_synopsys_hc_bug = 1;
223226
}
224227
break;
228+
case PCI_VENDOR_ID_ASPEED:
229+
if (pdev->device == PCI_DEVICE_ID_ASPEED_EHCI) {
230+
ehci_info(ehci, "applying Aspeed HC workaround\n");
231+
ehci->is_aspeed = 1;
232+
}
233+
break;
225234
}
226235

227236
/* optional debug port, normally in the first BAR */

0 commit comments

Comments
 (0)