]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
USB: Accept bulk endpoints with 1024-byte maxpacket
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 3 May 2018 15:04:48 +0000 (11:04 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:25:18 +0000 (12:25 +0200)
commitfaf3a75ca0151c2bbf17f7ae8377f285799995dc
tree2163e3e00cc84d2ec042de39c61235b2d78aa8e6
parent48960cdede8bef0d50a4c4109481ef5f6c77d3db
USB: Accept bulk endpoints with 1024-byte maxpacket

BugLink: http://bugs.launchpad.net/bugs/1778759
commit fb5ee84ea72c5f1b6cabdd1c9d6e8648995ca7c6 upstream.

Some non-compliant high-speed USB devices have bulk endpoints with a
1024-byte maxpacket size.  Although such endpoints don't work with
xHCI host controllers, they do work with EHCI controllers.  We used to
accept these invalid sizes (with a warning), but we no longer do
because of an unintentional change introduced by commit aed9d65ac327
("USB: validate wMaxPacketValue entries in endpoint descriptors").

This patch restores the old behavior, so that people with these
peculiar devices can use them without patching their kernels by hand.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Suggested-by: Elvinas <elvinas@veikia.lt>
Fixes: aed9d65ac327 ("USB: validate wMaxPacketValue entries in endpoint descriptors")
CC: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/core/config.c