]> 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>
Mon, 22 Nov 2010 19:03:15 +0000 (11:03 -0800)
commit01c2a9c29f3b96384b2a250ba7967d09a899763a
treee4be75158c70eb31cb683f9dfb8b52688a60918a
parente7f43b38ea5341790f825e4cbb5596797c45b33d
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>
drivers/usb/core/hub.c