cnss2: Check CNSS_MHI_POWER_OFF state in cnss_pci_suspend_bus()
In the process of idle shutdown, cnss_pci_power_off_mhi()
already done with CNSS_MHI_POWER_OFF state set, but
cnss_suspend_pci_link() doesn't complete yet, so PCI_LINK_DOWN
won't be set, at the same time system suspend comes, it will be
failed with CNSS_MHI_SUSPEND state set checking at
cnss_pci_suspend_bus()/cnss_pci_set_mhi_state().
When mhi state is already CNSS_MHI_POWER_OFF, no need to do pci
suspend link related operation while such actions also will be done
through cnss_qca6290_shutdown()/cnss_suspend_pci_link(). Fix is to
check CNSS_MHI_POWER_OFF state in cnss_pci_suspend_bus().
Change-Id: I2e03dffdc29b5c9743209cbd29c16345d414af35
Signed-off-by:
Huashan Qu <hqu@codeaurora.org>
Loading
Please register or sign in to comment