Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e3469c5 authored by Karthik Kantamneni's avatar Karthik Kantamneni Committed by Gerrit - the friendly Code Review server
Browse files

qcacmn: Set EP vote only if feature is supported

Skip setting EP vote if EP voting feature is not supported

Change-Id: I1f21b13f14ec6e65fec5fdbdc952df05ee0f1c6e
CRs-Fixed: 2953425
parent 72c311fc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -882,6 +882,9 @@ int hif_prevent_link_low_power_states(struct hif_opaque_softc *hif)
	struct hif_ipci_softc *ipci_scn = HIF_GET_IPCI_SOFTC(scn);
	uint32_t timeout = 0;

	if (pld_is_pci_ep_awake(scn->qdf_dev->dev) == -ENOTSUPP)
		return 0;

	while (pld_is_pci_ep_awake(scn->qdf_dev->dev) &&
	       timeout <= EP_WAKE_RESET_DELAY_TIMEOUT_US) {
		qdf_sleep_us(EP_WAKE_RESET_DELAY_US);