mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
cnss2: Check link status before setting wlaon_pwr_ctrl registers
If PCIe link is down, skip setting wlaon_pwr_ctrl registers to avoid unclocked access. Change-Id: I156f936ad87089754d6644d2eb3199105065ee32 Signed-off-by: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
parent
6a4a49544d
commit
e70b20554b
1 changed files with 4 additions and 0 deletions
|
|
@ -1534,6 +1534,10 @@ static void cnss_pci_set_wlaon_pwr_ctrl(struct cnss_pci_data *pci_priv,
|
|||
if (!plat_priv->set_wlaon_pwr_ctrl)
|
||||
return;
|
||||
|
||||
if (pci_priv->pci_link_state == PCI_LINK_DOWN ||
|
||||
pci_priv->pci_link_down_ind)
|
||||
return;
|
||||
|
||||
if (do_force_wake)
|
||||
if (cnss_pci_force_wake_get(pci_priv))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue