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>
Tue, 26 Jan 2021 14:15:31 +0000 (15:15 +0100)
commitd8c6edfa3f4ee0d45d7ce5ef18d1245b78774b9d
treeb8c3c0acd7fa904ea98939dac057ecf58ccb0639
parent6ee1d745b7c9fd573fba142a2efdad76a9f1cb04
USB: usblp: don't call usb_set_interface if there's a single alt

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