qcacmn: Replace obsolete HIF_DBG() with hif_debug()
Replace obsolete HIF_DBG() with hif_debug(). Change-Id: I462d75617359fd13eafa497045ddfb70c2025595 CRs-Fixed: 2779720
This commit is contained in:

committed by
snandini

parent
d89e043589
commit
80c1b5a6c3
@@ -162,8 +162,7 @@ int hif_napi_create(struct hif_opaque_softc *hif_ctx,
|
||||
} else
|
||||
rc = 0;
|
||||
|
||||
HIF_DBG("%s: NAPI structures initialized, rc=%d",
|
||||
__func__, rc);
|
||||
hif_debug("NAPI structures initialized, rc=%d", rc);
|
||||
}
|
||||
for (i = 0; i < hif->ce_count; i++) {
|
||||
ce_state = hif->ce_id_to_state[i];
|
||||
@@ -226,8 +225,7 @@ int hif_napi_create(struct hif_opaque_softc *hif_ctx,
|
||||
* protection as there should be no-one around yet
|
||||
*/
|
||||
napid->ce_map |= (0x01 << i);
|
||||
HIF_DBG("%s: NAPI id %d created for pipe %d", __func__,
|
||||
napii->id, i);
|
||||
hif_debug("NAPI id %d created for pipe %d", napii->id, i);
|
||||
}
|
||||
|
||||
/* no ces registered with the napi */
|
||||
@@ -277,7 +275,7 @@ void hif_napi_rx_offld_flush_cb_register(struct hif_opaque_softc *hif_hdl,
|
||||
if (ce_state && (ce_state->htt_rx_data)) {
|
||||
napii = napid->napis[i];
|
||||
napii->offld_flush_cb = offld_flush_handler;
|
||||
HIF_DBG("Registering offload for ce_id %d NAPI callback for %d flush_cb %pK\n",
|
||||
hif_debug("Registering offload for ce_id %d NAPI callback for %d flush_cb %pK",
|
||||
i, napii->id, napii->offld_flush_cb);
|
||||
}
|
||||
}
|
||||
@@ -302,8 +300,8 @@ void hif_napi_rx_offld_flush_cb_deregister(struct hif_opaque_softc *hif_hdl)
|
||||
ce_state = scn->ce_id_to_state[i];
|
||||
if (ce_state && (ce_state->htt_rx_data)) {
|
||||
napii = napid->napis[i];
|
||||
HIF_DBG("deRegistering offld for ce_id %d NAPI callback for %d flush_cb %pK\n",
|
||||
i, napii->id, napii->offld_flush_cb);
|
||||
hif_debug("deRegistering offld for ce_id %d NAPI callback for %d flush_cb %pK",
|
||||
i, napii->id, napii->offld_flush_cb);
|
||||
/* Not required */
|
||||
napii->offld_flush_cb = NULL;
|
||||
}
|
||||
@@ -365,8 +363,7 @@ int hif_napi_destroy(struct hif_opaque_softc *hif_ctx,
|
||||
if (hif->napi_data.state == HIF_NAPI_CONF_UP) {
|
||||
if (force) {
|
||||
napi_disable(&(napii->napi));
|
||||
HIF_DBG("%s: NAPI entry %d force disabled",
|
||||
__func__, id);
|
||||
hif_debug("NAPI entry %d force disabled", id);
|
||||
NAPI_DEBUG("NAPI %d force disabled", id);
|
||||
} else {
|
||||
hif_err("Cannot destroy active NAPI %d", id);
|
||||
@@ -390,7 +387,7 @@ int hif_napi_destroy(struct hif_opaque_softc *hif_ctx,
|
||||
napid->napis[ce] = NULL;
|
||||
napii->scale = 0;
|
||||
qdf_mem_free(napii);
|
||||
HIF_DBG("%s: NAPI %d destroyed\n", __func__, id);
|
||||
hif_debug("NAPI %d destroyed", id);
|
||||
|
||||
/* if there are no active instances and
|
||||
* if they are all destroyed,
|
||||
@@ -403,8 +400,7 @@ int hif_napi_destroy(struct hif_opaque_softc *hif_ctx,
|
||||
qdf_spinlock_destroy(&(napid->lock));
|
||||
memset(napid,
|
||||
0, sizeof(struct qca_napi_data));
|
||||
HIF_DBG("%s: no NAPI instances. Zapped.",
|
||||
__func__);
|
||||
hif_debug("no NAPI instances. Zapped");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -534,26 +530,21 @@ int hif_napi_event(struct hif_opaque_softc *hif_ctx, enum qca_napi_event event,
|
||||
case NAPI_EVT_INT_STATE: {
|
||||
int on = (data != ((void *)0));
|
||||
|
||||
HIF_DBG("%s: recved evnt: STATE_CMD %d; v = %d (state=0x%0x)",
|
||||
__func__, event,
|
||||
on, prev_state);
|
||||
hif_debug("recved evnt: STATE_CMD %d; v = %d (state=0x%0x)",
|
||||
event, on, prev_state);
|
||||
if (on)
|
||||
if (prev_state & HIF_NAPI_CONF_UP) {
|
||||
HIF_DBG("%s: duplicate NAPI conf ON msg",
|
||||
__func__);
|
||||
hif_debug("Duplicate NAPI conf ON msg");
|
||||
} else {
|
||||
HIF_DBG("%s: setting state to ON",
|
||||
__func__);
|
||||
hif_debug("Setting state to ON");
|
||||
napid->state |= HIF_NAPI_CONF_UP;
|
||||
}
|
||||
else /* off request */
|
||||
if (prev_state & HIF_NAPI_CONF_UP) {
|
||||
HIF_DBG("%s: setting state to OFF",
|
||||
__func__);
|
||||
hif_debug("Setting state to OFF");
|
||||
napid->state &= ~HIF_NAPI_CONF_UP;
|
||||
} else {
|
||||
HIF_DBG("%s: duplicate NAPI conf OFF msg",
|
||||
__func__);
|
||||
hif_debug("Duplicate NAPI conf OFF msg");
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -696,8 +687,7 @@ int hif_napi_event(struct hif_opaque_softc *hif_ctx, enum qca_napi_event event,
|
||||
}
|
||||
}
|
||||
} else {
|
||||
HIF_DBG("%s: no change in hif napi state (still %d)",
|
||||
__func__, prev_state);
|
||||
hif_debug("no change in hif napi state (still %d)", prev_state);
|
||||
}
|
||||
|
||||
NAPI_DEBUG("<--[rc=%d]", rc);
|
||||
@@ -1668,7 +1658,7 @@ static inline void hif_napi_bl_irq(struct qca_napi_data *napid, bool bl_flag)
|
||||
else
|
||||
irq_modify_status(napii->irq,
|
||||
IRQ_NO_BALANCING, 0);
|
||||
HIF_DBG("%s: bl_flag %d CE %d", __func__, bl_flag, i);
|
||||
hif_debug("bl_flag %d CE %d", bl_flag, i);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user