Commit 6c83110e authored by Chris Lu's avatar Chris Lu Committed by Hsin-chen Chuang
Browse files

UPSTREAM: 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: 8fafe702 ("Bluetooth: mt7921s: support bluetooth reset mechanism")
Signed-off-by: default avatarChris Lu <chris.lu@mediatek.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
(cherry picked from commit 77343b8b)

Bug: 441635783
Change-Id: I286f5e69aa665d357cf459a241b0663f0738347c
Signed-off-by: default avatarHsin-chen Chuang <chharry@google.com>
parent 75c950e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment