]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: usblp: don't call usb_set_interface if there's a single alt
authorJeremy Figgins <kernel@jeremyfiggins.com>
Sun, 24 Jan 2021 00:21:36 +0000 (18:21 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:21:06 +0000 (09:21 +0100)
commit7048a23f4c9ff99fdd2658255c5d979b8ba94e2e
treee6e68c69b5efaf84194b4bb2e027054b3d1bda29
parent94bf4b88d5b83d07c65085e67b9e342e562c11c0
USB: usblp: don't call usb_set_interface if there's a single alt

commit d8c6edfa3f4ee0d45d7ce5ef18d1245b78774b9d upstream.

Some devices, such as the Winbond Electronics Corp. Virtual Com Port
(Vendor=0416, ProdId=5011), lockup when usb_set_interface() or
usb_clear_halt() are called. This device has only a single
altsetting, so it should not be necessary to call usb_set_interface().

Acked-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Jeremy Figgins <kernel@jeremyfiggins.com>
Link: https://lore.kernel.org/r/YAy9kJhM/rG8EQXC@watson
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usblp.c