]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: accept some invalid ep0-maxpacket values
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 14 Oct 2010 19:25:21 +0000 (15:25 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:22:14 +0000 (10:22 -0700)
commit56626a72a47bf3e50875d960d6b5f17b9bee0ab2
tree1bcc6ca5c2df4cac875a646bc45d1e26f4bfdf22
parent5535b1d5f8885695c6ded783c692e3c0d0eda8ca
USB: accept some invalid ep0-maxpacket values

A few devices (such as the RCA VR5220 voice recorder) are so
non-compliant with the USB spec that they have invalid maxpacket sizes
for endpoint 0.  Nevertheless, as long as we can safely use them, we
may as well do so.

This patch (as1432) softens our acceptance criterion by allowing
high-speed devices to have ep0-maxpacket sizes other than 64.  A
warning is printed in the system log when this happens, and the
existing error message is clarified.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: James <bjlockie@lockie.ca>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c