USB driver

From: Karel Srsen (Karel.Srsen@asicentrum.cz)
Date: Tue Apr 11 2000 - 06:01:15 EST


Hello,
is there somebody who understands linux USB driver ?
I have one question:
there is following piece of code in drivers/usb/usb.c (2.3.50 kernel):

int usb_new_device(struct usb_device *dev)
{
...
...
        err = usb_get_descriptor(dev, USB_DT_DEVICE, 0,
&dev->descriptor, 8);
        if (err < 8) {
...
...
}

that's nice but in fact USB device descriptor's length is not 8 bytes
but 18 (0x12). Does it means that driver reads only leading 8 bytes
instead of whole descriptor ? I thing it's wrong, isn't ? Can it cause
any error ?

I haven't subscribed this mailing list. If you decide to answer, send
reply to Karel.Srsen@asicentrum.cz please.

  Karel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:15 EST