]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commit3103b421b3ac6b9c38363a5901eecd3214a39352
tree887c550bbd405e9a907d768b6a415508997bdbdb
parent94afa544bcdf86b4e9f85dfbdd90cc94bfafd2cf
usb: do not reset if a low-speed or full-speed device timed out

BugLink: http://bugs.launchpad.net/bugs/1807469
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/core/hub.c