Skip to content

Commit

Permalink
Bluetooth: btusb: mediatek: move Bluetooth power off command position
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Lu authored and Luiz Augusto von Dentz committed Nov 14, 2024
1 parent 3d12862 commit ad0c6f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/bluetooth/btusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad0c6f6

Please sign in to comment.