diff options
| author | Zhihong Chen <[email protected]> | 2024-08-16 14:58:32 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-08-16 21:32:09 +0800 |
| commit | 500367dd82844ddbbad9ad97650fca51a187a005 (patch) | |
| tree | e58246ecd35ca3a93e4feb84e98ee957143cf600 | |
| parent | 1efc29be5f60d685ebf1811dd0ddeae575015662 (diff) | |
port: ehci: should not be clear CSC/PEC/OCC flag when usb_hc_init()
Signed-off-by: Zhihong Chen <[email protected]>
| -rw-r--r-- | port/ehci/usb_hc_ehci.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } |
