mirror of
https://github.com/sakumisu/CherryUSB.git
synced 2025-05-09 00:21:44 +08:00
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:
parent
1efc29be5f
commit
500367dd82
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user