cvs commit: src/sys/dev/usb uhub.c
Josef Karthauser
joe at FreeBSD.org
Mon Jul 14 10:46:28 PDT 2003
joe 2003/07/14 10:46:27 PDT
FreeBSD src repository
Modified files:
sys/dev/usb uhub.c
Log:
As defined by USB Specification Rev 2.0 (in section 11.24.2.5), to
get a Hub descriptor, we have to set req.wValue to "Descriptor Type
and Descriptor Index". In this case, Descriptor Type is 0x29
(UDESC_HUB), Descriptor Index should be 0.
If I don't do a check (dev->address > 1 ... ), root hub fails.
A new Cytronix 4-port USB 2.0 Hub (Cypress CY7C65640 chip) now works
after this patch.
Submitted by: Alexander Pohoyda <alexander.pohoyda at gmx.net>
MFC after: 7 days
Revision Changes Path
1.49 +1 -1 src/sys/dev/usb/uhub.c
More information about the cvs-src
mailing list