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
This commit is contained in:

committato da
Madan Koyyalamudi

parent
548c146aa0
commit
b1a539c931
@@ -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);
|
||||
|
Fai riferimento in un nuovo problema
Block a user