Skip to content

Commit

Permalink
libusb: lookup devfs/ instead of /dev/ when connecting
Browse files Browse the repository at this point in the history
`/dev/` does not exist when the usb is loaded before the fs (e.g. when
umass is used for rootfs mounting)

JIRA: RTOS-937
  • Loading branch information
adamgreloch committed Nov 25, 2024
1 parent 008552a commit 3514ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libusb/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3514ec3

Please sign in to comment.