mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
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:
parent
12b6e9d07f
commit
6a4676ec03
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue