port: ehci: should not be clear CSC/PEC/OCC flag when usb_hc_init()

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
This commit is contained in:
Zhihong Chen 2024-08-16 14:58:32 +08:00 committed by sakumisu
parent 1efc29be5f
commit 500367dd82

View File

@ -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++) { for (uint8_t port = 0; port < g_ehci_hcd[bus->hcd.hcd_id].n_ports; port++) {
regval = EHCI_HCOR->portsc[port]; regval = EHCI_HCOR->portsc[port];
regval |= EHCI_PORTSC_PP; regval |= EHCI_PORTSC_PP;
regval &= ~(EHCI_PORTSC_CSC | EHCI_PORTSC_PEC | EHCI_PORTSC_OCC);
EHCI_HCOR->portsc[port] = regval; EHCI_HCOR->portsc[port] = regval;
} }
} }