From 6a4676ec030754e431483cdde0fdc77c0a35e080 Mon Sep 17 00:00:00 2001 From: Aditya Kodukula Date: Tue, 24 Mar 2020 15:09:52 -0700 Subject: [PATCH] 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 --- hif/src/hif_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hif/src/hif_main.c b/hif/src/hif_main.c index dadb88610017..1ccdf15157e6 100644 --- a/hif/src/hif_main.c +++ b/hif/src/hif_main.c @@ -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); }