]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: Disable runtime suspend on Realtek devices
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 5 Dec 2019 09:07:01 +0000 (17:07 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Dec 2019 09:31:29 +0000 (10:31 +0100)
commitde8d7c3f610f18d54aa11165acc75376c49c55a0
treea704e1d0e178446a878b47e1999e6efadb0ef3e5
parent571f82b58824b732f271ceaa3eecf43fe5c9b8b4
Bluetooth: btusb: Disable runtime suspend on Realtek devices

After commit 5ab64a76d92f ("Bluetooth: btusb: Fix suspend issue for
Realtek devices") both WiFi and Bluetooth stop working after reboot:
[   34.322617] usb 1-8: reset full-speed USB device number 3 using xhci_hcd
[   34.450401] usb 1-8: device descriptor read/64, error -71
[   34.694375] usb 1-8: device descriptor read/64, error -71
...
[   44.599111] rtw_pci 0000:02:00.0: failed to poll offset=0x5 mask=0x3 value=0x0
[   44.599113] rtw_pci 0000:02:00.0: mac power on failed
[   44.599114] rtw_pci 0000:02:00.0: failed to power on mac
[   44.599114] rtw_pci 0000:02:00.0: leave idle state failed
[   44.599492] rtw_pci 0000:02:00.0: failed to leave ips state
[   44.599493] rtw_pci 0000:02:00.0: failed to leave idle state

That commit removed USB_QUIRK_RESET_RESUME, which not only resets the USB
device after resume, it also prevents the device from being runtime
suspended by USB core. My experiment shows if the Realtek btusb device
ever runtime suspends once, the entire wireless module becomes useless
after reboot.

So let's explicitly disable runtime suspend on Realtek btusb device for
now.

Fixes: 5ab64a76d92f ("Bluetooth: btusb: Fix suspend issue for Realtek devices")
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c