]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btrtl: HCI reset on close for Realtek BT chip
authorJian-Hong Pan <jian-hong@endlessm.com>
Tue, 25 Jun 2019 08:30:51 +0000 (16:30 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 6 Jul 2019 10:32:50 +0000 (12:32 +0200)
commit64772bead7691b95db64d044ae91a98a7c081ab3
treeaa560c8fe725702f772da427c407e98afffcf3fb
parent6e043f90c325a1454489c4bd9c01b62da95741b4
Bluetooth: btrtl: HCI reset on close for Realtek BT chip

Realtek RTL8822BE BT chip on ASUS X420FA cannot be turned on correctly
after on-off several times. Bluetooth daemon sets BT mode failed when
this issue happens. Scanning must be active while turning off for this
bug to be hit.

bluetoothd[1576]: Failed to set mode: Failed (0x03)

If BT is turned off, then turned on again, it works correctly again.

According to the vendor driver, the HCI_QUIRK_RESET_ON_CLOSE flag is set
during probing. So, this patch makes Realtek's BT reset on close to fix
this issue.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=203429
Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
Reviewed-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btrtl.c
drivers/bluetooth/btrtl.h
drivers/bluetooth/btusb.c