Skip to content

Commit b967b37

Browse files
ChrisCH-Lugregkh
authored andcommitted
Bluetooth: btusb: mediatek: move Bluetooth power off command position
commit ad0c6f6 upstream. 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> Cc: Fedor Pchelkin <boddah8794@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d508e56 commit b967b37

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/bluetooth/btusb.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2734,11 +2734,14 @@ static int btusb_mtk_shutdown(struct hci_dev *hdev)
27342734
{
27352735
struct btusb_data *data = hci_get_drvdata(hdev);
27362736
struct btmtk_data *btmtk_data = hci_get_priv(hdev);
2737+
int ret;
2738+
2739+
ret = btmtk_usb_shutdown(hdev);
27372740

27382741
if (test_bit(BTMTK_ISOPKT_RUNNING, &btmtk_data->flags))
27392742
btusb_mtk_release_iso_intf(data);
27402743

2741-
return btmtk_usb_shutdown(hdev);
2744+
return ret;
27422745
}
27432746

27442747
#ifdef CONFIG_PM

0 commit comments

Comments
 (0)