From 5c7438a98e9d0538733db70fa0eeeb25066d5af2 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 8 Aug 2025 23:06:25 -0400 Subject: 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 --- sys/dev/usb/xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') 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); -- cgit v1.2.3