From 500367dd82844ddbbad9ad97650fca51a187a005 Mon Sep 17 00:00:00 2001 From: Zhihong Chen Date: Fri, 16 Aug 2024 14:58:32 +0800 Subject: port: ehci: should not be clear CSC/PEC/OCC flag when usb_hc_init() Signed-off-by: Zhihong Chen --- port/ehci/usb_hc_ehci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/port/ehci/usb_hc_ehci.c b/port/ehci/usb_hc_ehci.c index 0ee5d2ad..cade2dde 100644 --- a/port/ehci/usb_hc_ehci.c +++ b/port/ehci/usb_hc_ehci.c @@ -832,6 +832,7 @@ int usb_hc_init(struct usbh_bus *bus) for (uint8_t port = 0; port < g_ehci_hcd[bus->hcd.hcd_id].n_ports; port++) { regval = EHCI_HCOR->portsc[port]; regval |= EHCI_PORTSC_PP; + regval &= ~(EHCI_PORTSC_CSC | EHCI_PORTSC_PEC | EHCI_PORTSC_OCC); EHCI_HCOR->portsc[port] = regval; } } -- cgit v1.3.1