Skip to content

Commit 752aea5

Browse files
Mark Chenholtmann
authored andcommitted
Bluetooth: mt7921s: fix bus hang with wrong privilege
According to chip hw flow, mt7921s need to re-acquire privilege again before normal running. Otherwise, the bus may be stuck in an abnormal status. Fixes: c603bf1 ("Bluetooth: btmtksdio: add MT7921s Bluetooth support") Co-developed-by: Sean Wang <[email protected]> Signed-off-by: Sean Wang <[email protected]> Signed-off-by: Mark Chen <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent c7e301d commit 752aea5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/bluetooth/btmtksdio.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,14 @@ static int btmtksdio_setup(struct hci_dev *hdev)
960960
if (err < 0)
961961
return err;
962962

963+
err = btmtksdio_fw_pmctrl(bdev);
964+
if (err < 0)
965+
return err;
966+
967+
err = btmtksdio_drv_pmctrl(bdev);
968+
if (err < 0)
969+
return err;
970+
963971
/* Enable SCO over I2S/PCM */
964972
err = btmtksdio_sco_setting(hdev);
965973
if (err < 0) {

0 commit comments

Comments
 (0)