Commit 752aea58 authored by Mark Chen's avatar Mark Chen Committed by Marcel Holtmann

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: c603bf1f ("Bluetooth: btmtksdio: add MT7921s Bluetooth support")
Co-developed-by: default avatarSean Wang <sean.wang@mediatek.com>
Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
Signed-off-by: default avatarMark Chen <mark-yw.chen@mediatek.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent c7e301d7
...@@ -960,6 +960,14 @@ static int btmtksdio_setup(struct hci_dev *hdev) ...@@ -960,6 +960,14 @@ static int btmtksdio_setup(struct hci_dev *hdev)
if (err < 0) if (err < 0)
return err; 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 */ /* Enable SCO over I2S/PCM */
err = btmtksdio_sco_setting(hdev); err = btmtksdio_sco_setting(hdev);
if (err < 0) { if (err < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment