Fix usb buffer size for large descriptor of devices
PATCH 1/1 Fix usb buffer size for large descriptor of devices
scanning bus 0 for devices...usb_get_configuration_no: failed to get descriptor - too long: 943
This was experienced on toshiba ac100 aka paz00, when discovering the webcam.
This patch is probably wrong, as it raise the buffer for all usb. Instead it could probably be raised only per target system of maybe per kind of devices
--- common/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/usb.c +1 -1
@@ -68,7 +68,7 @@ #define USB_PRINTF(fmt, args...) debug_cond(USB_DEBUG, fmt, ##args) #define USB_HUB_PRINTF(fmt, args...) debug_cond(USB_HUB_DEBUG, fmt, ##args) -#define USB_BUFSIZ 512 +#define USB_BUFSIZ 1024static struct usb_device usb_dev[USB_MAX_DEVICE ];static int dev_index;
Signature · 1 line
1.7.11.7
PATCH 1/1 Fix usb buffer size for large descriptor of devices
Dear Nicolas Chauvet,
Quoted 9 lines
scanning bus 0 for devices...
usb_get_configuration_no: failed to get descriptor - too long: 943This was experienced on toshiba ac100 aka paz00, when discovering the webcam.
This patch is probably wrong, as it raise the buffer for all usb. Instead it could probably be raised only per target system of maybe per kind of devices
It'd be nice to CC me, it'd greatly raise your chance of getting a reply.
btw. why dont you allocate it dynamically then?
Quoted 17 lines
--- common/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)common/usb.c +1
-1@@ -68,7 +68,7 @@ #define USB_PRINTF(fmt, args...) debug_cond(USB_DEBUG, fmt, ##args) #define USB_HUB_PRINTF(fmt, args...) debug_cond(USB_HUB_DEBUG, fmt, ##args) -#define USB_BUFSIZ 512 +#define USB_BUFSIZ 1024static struct usb_device usb_dev[USB_MAX_DEVICE ];
Quoted 1 line
static int
dev_index;
Best regards,
Marek Vasut