mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "cnss2: Check device power state for Suspend / Resume operations"
This commit is contained in:
commit
e3dad1cb95
1 changed files with 6 additions and 0 deletions
|
|
@ -2659,6 +2659,9 @@ static int cnss_pci_suspend_noirq(struct device *dev)
|
|||
if (!pci_priv)
|
||||
goto out;
|
||||
|
||||
if (!cnss_is_device_powered_on(pci_priv->plat_priv))
|
||||
goto out;
|
||||
|
||||
driver_ops = pci_priv->driver_ops;
|
||||
if (driver_ops && driver_ops->suspend_noirq)
|
||||
ret = driver_ops->suspend_noirq(pci_dev);
|
||||
|
|
@ -2677,6 +2680,9 @@ static int cnss_pci_resume_noirq(struct device *dev)
|
|||
if (!pci_priv)
|
||||
goto out;
|
||||
|
||||
if (!cnss_is_device_powered_on(pci_priv->plat_priv))
|
||||
goto out;
|
||||
|
||||
driver_ops = pci_priv->driver_ops;
|
||||
if (driver_ops && driver_ops->resume_noirq &&
|
||||
!pci_priv->pci_link_down_ind)
|
||||
|
|
|
|||
Loading…
Reference in a new issue