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:Chris Lu <chris.lu@mediatek.com> Signed-off-by:
Luiz Augusto von Dentz <luiz.von.dentz@intel.com> (cherry picked from commit 77343b8b) Bug: 441635783 Change-Id: I286f5e69aa665d357cf459a241b0663f0738347c Signed-off-by:
Hsin-chen Chuang <chharry@google.com>
Loading
Please sign in to comment