Forráskód Böngészése

qcacmn: Check for EP vote access during prevent l1 state

By the time driver reaches prevent l1 call there is chance
of EP vote access getting disabled in-flight, to handle
this skip vote request if EP vote access disabled in-flight.

Change-Id: I91e1cdfc08492188ad8614339d5918c294bf10e4
CRs-Fixed: 3113786
Karthik Kantamneni 3 éve
szülő
commit
1a06546636
1 módosított fájl, 8 hozzáadás és 0 törlés
  1. 8 0
      hif/src/ipcie/if_ipci.c

+ 8 - 0
hif/src/ipcie/if_ipci.c

@@ -995,6 +995,14 @@ int hif_prevent_link_low_power_states(struct hif_opaque_softc *hif)
 	if (pld_is_pci_ep_awake(scn->qdf_dev->dev) == -ENOTSUPP)
 		return 0;
 
+	if ((qdf_atomic_read(&scn->dp_ep_vote_access) ==
+	     HIF_EP_VOTE_ACCESS_DISABLE) &&
+	    (qdf_atomic_read(&scn->ep_vote_access) ==
+	    HIF_EP_VOTE_ACCESS_DISABLE)) {
+		hif_info_high("EP access disabled in flight skip vote");
+		return 0;
+	}
+
 	start_time = curr_time = qdf_system_ticks_to_msecs(qdf_system_ticks());
 	while (pld_is_pci_ep_awake(scn->qdf_dev->dev) &&
 	       curr_time <= start_time + EP_WAKE_RESET_DELAY_TIMEOUT_MS) {