diff options
author | Ian Moffett <ian@osmora.org> | 2025-08-08 23:06:25 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-08-08 23:06:25 -0400 |
commit | 5c7438a98e9d0538733db70fa0eeeb25066d5af2 (patch) | |
tree | 06b7b504246a5b9bb15cf103f350bfddfee4ff5d /sys | |
parent | b0f9596d09d95755f47a4443d2b775ee41025607 (diff) |
kernel: xhci: Fake success if already running
Do not return an error in xhci_start_hc() if it is already running as it
complicates things.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/xhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index de78439..32c4315 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -372,7 +372,7 @@ xhci_start_hc(struct xhci_hc *hc) /* Don't start up if we are already running */ usbcmd = mmio_read32(&opregs->usbcmd); if (ISSET(usbcmd, USBCMD_RUN)) - return -EBUSY; + return 0; usbcmd |= USBCMD_RUN; mmio_write32(&opregs->usbcmd, usbcmd); |