]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: pci: restore LDO setting after device resume
authorDian-Syuan Yang <dian_syuan0116@realtek.com>
Tue, 27 Jan 2026 08:50:35 +0000 (16:50 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 30 Jan 2026 05:56:07 +0000 (13:56 +0800)
The LDO (Low Dropout Regulator) setting is missing after suspend/resume
in some platforms, and it will cause card loss. Therefore, reconfigure
this setting to avoid it.

Signed-off-by: Dian-Syuan Yang <dian_syuan0116@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260127085036.44060-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c

index b8135cf15d13c4864e93508ddbefe985f8898b51..fb4469a76bc03bf0950bc4939a9a8bbd08ac807a 100644 (file)
@@ -4605,6 +4605,7 @@ static int __maybe_unused rtw89_pci_resume(struct device *dev)
                rtw89_write32_clr(rtwdev, R_AX_PCIE_PS_CTRL_V1,
                                  B_AX_SEL_REQ_ENTR_L1);
        }
+       rtw89_pci_hci_ldo(rtwdev);
        rtw89_pci_l2_hci_ldo(rtwdev);
 
        rtw89_pci_basic_cfg(rtwdev, true);