diff options
author | Chris Lu <chris.lu@mediatek.com> | 2024-09-23 10:47:02 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-11-14 21:22:20 +0100 |
commit | ad0c6f603bb0b07846fda484c59a176a8cd02838 (patch) | |
tree | 80d580bf1866bacaf9334494309741b01e0d1de5 /drivers/bluetooth | |
parent | eth: fbnic: Add support to dump registers (diff) | |
download | linux-ad0c6f603bb0b07846fda484c59a176a8cd02838.tar.xz linux-ad0c6f603bb0b07846fda484c59a176a8cd02838.zip |
Bluetooth: btusb: mediatek: move Bluetooth power off command position
Move MediaTek Bluetooth power off command before releasing
usb ISO interface.
Signed-off-by: Chris Lu <chris.lu@mediatek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btusb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index e9534fbc92e3..9405f26fa9ed 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -2709,11 +2709,14 @@ static int btusb_mtk_shutdown(struct hci_dev *hdev) { struct btusb_data *data = hci_get_drvdata(hdev); struct btmtk_data *btmtk_data = hci_get_priv(hdev); + int ret; + + ret = btmtk_usb_shutdown(hdev); if (test_bit(BTMTK_ISOPKT_RUNNING, &btmtk_data->flags)) btusb_mtk_release_iso_intf(data); - return btmtk_usb_shutdown(hdev); + return ret; } #ifdef CONFIG_PM |