Skip to content

Instantly share code, notes, and snippets.

@jannau
Created August 25, 2022 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jannau/012f3ac1638e5d57219c7c200db03b00 to your computer and use it in GitHub Desktop.
Save jannau/012f3ac1638e5d57219c7c200db03b00 to your computer and use it in GitHub Desktop.
u-boot asahi usb logitech unifying receiver probe fix
diff --git a/common/usb.c b/common/usb.c
index aad13fd9c557..ea85f12f3b20 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -566,6 +566,7 @@ int usb_clear_halt(struct usb_device *dev, int pipe)
static int usb_get_descriptor(struct usb_device *dev, unsigned char type,
unsigned char index, void *buf, int size)
{
+ mdelay(1);
return usb_control_msg(dev, usb_rcvctrlpipe(dev, 0),
USB_REQ_GET_DESCRIPTOR, USB_DIR_IN,
(type << 8) + index, 0, buf, size,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment