Created
August 25, 2022 17:38
-
-
Save jannau/012f3ac1638e5d57219c7c200db03b00 to your computer and use it in GitHub Desktop.
u-boot asahi usb logitech unifying receiver probe fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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