Bluetooth: btmtksdio: fix possible FW initialization failure
authorSean Wang <sean.wang@mediatek.com>
Thu, 12 May 2022 21:38:12 +0000 (05:38 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 13 May 2022 11:18:17 +0000 (13:18 +0200)
commit7469720563e01f479ec5afe06bd6f440f965d523
tree6f468b3aee91bbeacb1c608e87767b6f760c3a25
parent0fab6361c4ba17d1b43a991bef4238a3c1754d35
Bluetooth: btmtksdio: fix possible FW initialization failure

According to FW advised sequence, mt7921s need to re-acquire privilege
immediately after the firmware download is complete before normal running.
Otherwise, it is still possible the bus may be stuck in an abnormal status
that causes FW initialization failure in the current driver.

Fixes: 752aea58489f ("Bluetooth: mt7921s: fix bus hang with wrong privilege")
Co-developed-by: Yake Yang <yake.yang@mediatek.com>
Signed-off-by: Yake Yang <yake.yang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmtksdio.c