Message ID | 20200808065728.3405-1-yazzep@gmail.com |
---|---|
State | New |
Headers | show |
Series | [RFC] USB: hub.c: decrease the number of attempts of enumeration scheme | expand |
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 052d5ac..ebf6931 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -2707,9 +2707,9 @@ static unsigned hub_is_wusb(struct usb_hub *hub) #define PORT_RESET_TRIES 5 #define SET_ADDRESS_TRIES 2 -#define GET_DESCRIPTOR_TRIES 2 -#define SET_CONFIG_TRIES (2 * (use_both_schemes + 1)) -#define USE_NEW_SCHEME(i, scheme) ((i) / 2 == (int)(scheme)) +#define GET_DESCRIPTOR_TRIES 1 +#define SET_CONFIG_TRIES (use_both_schemes + 1) +#define USE_NEW_SCHEME(i, scheme) ((i) == (int)(scheme)) #define HUB_ROOT_RESET_TIME 60 /* times are in msec */ #define HUB_SHORT_RESET_TIME 10