From 3514ec35ecf84aa45e07ba7368b4a3335f4efe14 Mon Sep 17 00:00:00 2001 From: Adam Greloch Date: Wed, 6 Nov 2024 15:31:57 +0100 Subject: [PATCH] libusb: lookup `devfs/` instead of `/dev/` when connecting `/dev/` does not exist when the usb is loaded before the fs (e.g. when umass is used for rootfs mounting) JIRA: RTOS-937 --- libusb/driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libusb/driver.c b/libusb/driver.c index fe92268..67bfc23 100644 --- a/libusb/driver.c +++ b/libusb/driver.c @@ -29,7 +29,7 @@ int usb_connect(const usb_device_id_t *filters, int nfilters, unsigned drvport) usb_msg_t *umsg = (usb_msg_t *)&msg.i.raw; oid_t oid; - while (lookup("/dev/usb", NULL, &oid) < 0) + while (lookup("devfs/usb", NULL, &oid) < 0) usleep(1000000); msg.type = mtDevCtl;