qcacmn: Update sw index from hw for ce_sendlist_send on data path ces

Fix CE full error when only legacy hif_send_head api is used on a ce configured
to use the fastpath logic.

Change-Id: I59530a0e5ff8b62a1b97007dcd959daa03025785
CRs-Fixed: 2018893
This commit is contained in:
Houston Hoffman 2017-03-14 19:34:19 -07:00 • committed by Sandeep Puligilla
commit ac99ac8eea

View file

@ -521,10 +521,19 @@ ce_sendlist_send_legacy(struct CE_handle *copyeng,
unsigned int num_items = sl->num_items;
unsigned int sw_index;
unsigned int write_index;
struct hif_softc *scn = CE_state->scn;
QDF_ASSERT((num_items > 0) && (num_items < src_ring->nentries));
qdf_spin_lock_bh(&CE_state->ce_index_lock);
if (CE_state->scn->fastpath_mode_on && CE_state->htt_tx_data &&
Q_TARGET_ACCESS_BEGIN(scn) == 0) {
src_ring->sw_index = CE_SRC_RING_READ_IDX_GET_FROM_DDR(
scn, CE_state->ctrl_addr);
Q_TARGET_ACCESS_END(scn);
}
sw_index = src_ring->sw_index;
write_index = src_ring->write_index;