Skip to content

Commit

Permalink
Bluetooth: mt7921s: fix bus hang with wrong privilege
Browse files Browse the repository at this point in the history
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 <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Mark Chen <mark-yw.chen@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Mark Chen authored and Marcel Holtmann committed Jan 21, 2022
1 parent c7e301d commit 752aea5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/bluetooth/btmtksdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,14 @@ static int btmtksdio_setup(struct hci_dev *hdev)
if (err < 0)
return err;

err = btmtksdio_fw_pmctrl(bdev);
if (err < 0)
return err;

err = btmtksdio_drv_pmctrl(bdev);
if (err < 0)
return err;

/* Enable SCO over I2S/PCM */
err = btmtksdio_sco_setting(hdev);
if (err < 0) {
Expand Down

0 comments on commit 752aea5

Please sign in to comment.