mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "cnss2: Check link status before setting wlaon_pwr_ctrl registers"
This commit is contained in:
commit
28b36d6392
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