qcacmn: HIF_INFO to log the linkstate_vote in hif_main.c

Add HIF_INFO to log the linkstate_vote value in the hif_vote_link_up()
and hif_vote_link_down() functions in order to log the occurences of
the rare event when we vote for link up/down.

Change-Id: I7549b3400977583bd2cd4ec4fcb3f16dd0865ce7
CRs-Fixed: 2648860
This commit is contained in:
Aditya Kodukula 2020-03-24 15:09:52 -07:00 • committed by nshrivas
commit 6a4676ec03

View file

@ -110,6 +110,7 @@ void hif_vote_link_down(struct hif_opaque_softc *hif_ctx)
QDF_BUG(scn);
scn->linkstate_vote--;
HIF_INFO("Down_linkstate_vote %d", scn->linkstate_vote);
if (scn->linkstate_vote == 0)
hif_bus_prevent_linkdown(scn, false);
}
@ -131,6 +132,7 @@ void hif_vote_link_up(struct hif_opaque_softc *hif_ctx)
QDF_BUG(scn);
scn->linkstate_vote++;
HIF_INFO("Up_linkstate_vote %d", scn->linkstate_vote);
if (scn->linkstate_vote == 1)
hif_bus_prevent_linkdown(scn, true);
}