On Tue, 17 Feb 2004, Dominik Kuhlen wrote:
> Hello
>
> If I connect my camera I'll get this messages:
> ---snip
> Feb 16 09:36:00 doku kernel: drivers/usb/core/config.c:107: unexpected descriptor
> 0x5, expecting interface, 0x4
> Feb 16 09:36:00 doku kernel: usb 1-1.1: can't read configurations, error -22
> ---snip
> and the device isn't listed in /proc/bus/usb/devices.
>
> I'm using kernel 2.6.2.
> 2.4.22 didn't produce such an error and my device worked well.
> A brief comparison of the sources showed me that this part has changed a lot.
> Do any workarounds exist for this problem?
> I googled for it but I got only *one* hit which was some kind of sourcefile.
>
> BTW my camera (Traveler SX330z) is taking the USB Spec not so seriously.
> (Some more or less vital spec violations).
No kidding -- an endpoint descriptor in a part of the configuration that
isn't allowed to refer to endpoints.
> But it's out there in the wild and I'm not the only one who has got one.
> So I think it should be handled by the USB subsystem nevertheless.
>
> Thanks
> Dominik
Try this patch and tell us if it works.
Alan Stern
===== config.c 1.28 vs edited =====
--- 1.28/drivers/usb/core/config.c Fri Sep 26 12:37:44 2003
+++ edited/drivers/usb/core/config.c Tue Feb 17 10:23:36 2004
@@ -311,8 +311,7 @@
header = (struct usb_descriptor_header *)buffer;
/* If we find another "proper" descriptor then we're done */
- if ((header->bDescriptorType == USB_DT_ENDPOINT) ||
- (header->bDescriptorType == USB_DT_INTERFACE))
+ if (header->bDescriptorType == USB_DT_INTERFACE)
break;
dbg("skipping descriptor 0x%X", header->bDescriptorType);
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel