mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacmn: Clear PCIe link suspended state
RTPM wow resume gets triggered from ongoing WMI cmds related to SAP getting started on the 5 GHz DFS channel. Even though PCIe link resume is successful, there is a link up vote from UMAC and scn link suspended state is not getting clear. Thus, clear the scn->link_suspended state at the end of hif_pci_bus_resume_noirq() because before HIF PCIe bus resume noirq phase is complete, PCIe link is already resumed. Change-Id: If05593c95d2d63d271fed4abcf84b43e96cc070e CRs-Fixed: 2833831
This commit is contained in:
parent
8883db5135
commit
d3f447ad13
1 changed files with 6 additions and 2 deletions
|
|
@ -2418,8 +2418,12 @@ int hif_pci_bus_resume_noirq(struct hif_softc *scn)
|
|||
{
|
||||
hif_apps_wake_irq_disable(GET_HIF_OPAQUE_HDL(scn));
|
||||
|
||||
if (hif_can_suspend_link(GET_HIF_OPAQUE_HDL(scn)))
|
||||
qdf_atomic_set(&scn->link_suspended, 0);
|
||||
/* a vote for link up can come in the middle of the ongoing resume
|
||||
* process. hence, clear the link suspend flag once
|
||||
* hif_bus_resume_noirq() succeeds since PCIe link is already resumed
|
||||
* by this time
|
||||
*/
|
||||
qdf_atomic_set(&scn->link_suspended, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue