summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-08-08 23:06:25 -0400
committerIan Moffett <ian@osmora.org>2025-08-08 23:06:25 -0400
commit5c7438a98e9d0538733db70fa0eeeb25066d5af2 (patch)
tree06b7b504246a5b9bb15cf103f350bfddfee4ff5d /sys
parentb0f9596d09d95755f47a4443d2b775ee41025607 (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.c2
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);