]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: btmtksdio: Add pmctrl handling for BT closed state during reset
authorChris Lu <chris.lu@mediatek.com>
Tue, 30 Sep 2025 05:39:33 +0000 (13:39 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 24 Oct 2025 14:20:50 +0000 (10:20 -0400)
commit77343b8b4f87560f8f03e77b98a81ff3a147b262
tree3b38cc5adb114c8990a8fc71ac2717d45e2cbece
parentf0c200a4a537f8f374584a974518b0ce69eda76c
Bluetooth: btmtksdio: Add pmctrl handling for BT closed state during reset

This patch adds logic to handle power management control when the
Bluetooth function is closed during the SDIO reset sequence.

Specifically, if BT is closed before reset, the driver enables the
SDIO function and sets driver pmctrl. After reset, if BT remains
closed, the driver sets firmware pmctrl and disables the SDIO function.

These changes ensure proper power management and device state consistency
across the reset flow.

Fixes: 8fafe702253d ("Bluetooth: mt7921s: support bluetooth reset mechanism")
Signed-off-by: Chris Lu <chris.lu@mediatek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btmtksdio.c