]> git.ipfire.org Git - thirdparty/linux.git/commit
Bluetooth: btmtk: Fix failed to send func ctrl for MediaTek devices.
authorChris Lu <chris.lu@mediatek.com>
Wed, 8 Jan 2025 09:50:28 +0000 (17:50 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 8 Jan 2025 16:14:03 +0000 (11:14 -0500)
commit67dba2c28fe0af7e25ea1aeade677162ed05310a
tree20b856a3d8b966a83f1f76e66fb9537fcb03e063
parent8023dd2204254a70887f5ee58d914bf70a060b9d
Bluetooth: btmtk: Fix failed to send func ctrl for MediaTek devices.

Use usb_autopm_get_interface() and usb_autopm_put_interface()
in btmtk_usb_shutdown(), it could send func ctrl after enabling
autosuspend.

Bluetooth: btmtk_usb_hci_wmt_sync() hci0: Execution of wmt command
           timed out
Bluetooth: btmtk_usb_shutdown() hci0: Failed to send wmt func ctrl
           (-110)

Fixes: 5c5e8c52e3ca ("Bluetooth: btmtk: move btusb_mtk_[setup, shutdown] to btmtk.c")
Signed-off-by: Chris Lu <chris.lu@mediatek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btmtk.c
net/bluetooth/rfcomm/tty.c