usb: do not reset if a low-speed or full-speed device timed out
authorMaxim Moseychuk <franchesko.salias.hudro.pedros@gmail.com>
Thu, 4 Jan 2018 18:43:03 +0000 (21:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 09:23:06 +0000 (11:23 +0200)
commit55365ad775af75e1ea56a496e845bd43cbf276bf
treea6199c9c75c87f3299ace7e04157db0d87d96153
parentc82ccd7122be45daa107244240a2ede87e562b86
usb: do not reset if a low-speed or full-speed device timed out

commit 6e01827ed93947895680fbdad68c072a0f4e2450 upstream.

Some low-speed and full-speed devices (for example, bluetooth)
do not have time to initialize. For them, ETIMEDOUT is a valid error.
We need to give them another try. Otherwise, they will
never be initialized correctly and in dmesg will be messages
"Bluetooth: hci0 command 0x1002 tx timeout" or similars.

Fixes: 264904ccc33c ("usb: retry reset if a device times out")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Maxim Moseychuk <franchesko.salias.hudro.pedros@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c