[PATCH 0/2][SRU][OEM-5.14] Need to reset MT7921 BT when the firmware hang or command no response

AceLan Kao acelan.kao at canonical.com
Fri Mar 18 02:15:24 UTC 2022


From: "Chia-Lin Kao (AceLan)" <acelan.kao at canonical.com>

BugLink: https://bugs.launchpad.net/bugs/1965467

[Impact]
Encounter BT command timeout issue when doing reboot test, and BT becomes
unusable.
Mar 15 22:04:44 u-Inspiron-15-3525 kernel: [ 463.633675] usb 3-4: reset high-speed USB device number 3 using xhci_hcd
Mar 15 22:04:45 u-Inspiron-15-3525 kernel: [ 465.027012] Bluetooth: hci0: command 0x2005 tx timeout
Mar 15 22:04:47 u-Inspiron-15-3525 kernel: [ 467.043176] Bluetooth: hci0: command 0x2041 tx timeout

[Fix]
Backport below 2 commit from v5.15-rc1 fix this issue
e947802657cb Bluetooth: btusb: Support Bluetooth Reset for Mediatek Chip(MT7921)
0b10c8c84c0c Bluetooth: btusb: Record debug log for Mediatek Chip.

[Test]
Verified on the problem machine, and confirmed it works

[Where problems could occur]
It adds a new function to cmd_timeout callback, so it won't affect old
behaviors. This only affects the chip which has command timeout issue,
and could reset the chip when encounter the issue.

mark-yw.chen (2):
  Bluetooth: btusb: Record debug log for Mediatek Chip.
  Bluetooth: btusb: Support Bluetooth Reset for Mediatek Chip(MT7921)

 drivers/bluetooth/btusb.c | 154 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 153 insertions(+), 1 deletion(-)

-- 
2.25.1




More information about the kernel-team mailing list