qcacmn: Fix Q_TARGET_ACCESS in hif_fastpath_resume
Q_TARGET_ACCESS return value check was incorrect. Fixed to match usage in the rest of the driver. Change-Id: I73631536c9670edcb5014f3e850985dfc6fc4d16 CRs-Fixed: 1046067
这个提交包含在:
@@ -2910,16 +2910,17 @@ static void hif_fastpath_resume(struct hif_opaque_softc *hif_ctx)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (scn->fastpath_mode_on) {
|
if (scn->fastpath_mode_on) {
|
||||||
if (Q_TARGET_ACCESS_BEGIN(scn)) {
|
if (Q_TARGET_ACCESS_BEGIN(scn) < 0)
|
||||||
ce_state = scn->ce_id_to_state[CE_HTT_H2T_MSG];
|
return;
|
||||||
qdf_spin_lock_bh(&ce_state->ce_index_lock);
|
|
||||||
|
|
||||||
/*war_ce_src_ring_write_idx_set */
|
ce_state = scn->ce_id_to_state[CE_HTT_H2T_MSG];
|
||||||
CE_SRC_RING_WRITE_IDX_SET(scn, ce_state->ctrl_addr,
|
qdf_spin_lock_bh(&ce_state->ce_index_lock);
|
||||||
ce_state->src_ring->write_index);
|
|
||||||
qdf_spin_unlock_bh(&ce_state->ce_index_lock);
|
/*war_ce_src_ring_write_idx_set */
|
||||||
Q_TARGET_ACCESS_END(scn);
|
CE_SRC_RING_WRITE_IDX_SET(scn, ce_state->ctrl_addr,
|
||||||
}
|
ce_state->src_ring->write_index);
|
||||||
|
qdf_spin_unlock_bh(&ce_state->ce_index_lock);
|
||||||
|
Q_TARGET_ACCESS_END(scn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
在新工单中引用
屏蔽一个用户