mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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:
parent
1c72830f3b
commit
ac99ac8eea
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue