]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:08:26 +0000 (18:08 -0500)
commit441830e3f24e6b6ff883c87f82b90fecb63ca12f
treed98539bfc9d3cb0d9d9144d810f4191b911fab9f
parent81f283bc95cff84658d28de141e93f0760081e40
USB: accept some invalid ep0-maxpacket values

commit 56626a72a47bf3e50875d960d6b5f17b9bee0ab2 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/usb/core/hub.c