From 80bb3f452de4f61e3d1ade2a0e87d0845733fda1 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 23 Apr 2022 08:57:55 +0100 Subject: [PATCH] ohci: fix startup when the controller is in SUSPEND or RESUME state. --- system/ohci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/ohci.c b/system/ohci.c index b53fbd5..91b405f 100644 --- a/system/ohci.c +++ b/system/ohci.c @@ -459,7 +459,7 @@ bool ohci_init(uintptr_t base_addr, usb_hcd_t *hcd) break; case OHCI_CTRL_HCFS_SUS: case OHCI_CTRL_HCFS_RES: - flush32(&op_regs->control, OHCI_CTRL_HCFS_SUS); + flush32(&op_regs->control, OHCI_CTRL_HCFS_RES); usleep(10*MILLISEC); break; default: // operational