wil6210: guarantee safe access to rx descriptors shared memory
add memory barrier after allocating new rx descriptors, before updating the hwtail. This will guarantee that all writes to descriptors (shared memory) are done before committing them to HW. Change-Id: If7c91c31b490b0762d23df21db7c30652b0817d4 Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com> Git-commit: ab6d7cc3eab4093caf91ba8b27590c4080d7d01c Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git CRs-Fixed: 1015627 Signed-off-by: Maya Erez <merez@codeaurora.org>
This commit is contained in:
parent
848faf10c4
commit
c89efd08b6
1 changed files with 6 additions and 0 deletions
|
@ -544,6 +544,12 @@ static int wil_rx_refill(struct wil6210_priv *wil, int count)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* make sure all writes to descriptors (shared memory) are done before
|
||||
* committing them to HW
|
||||
*/
|
||||
wmb();
|
||||
|
||||
wil_w(wil, v->hwtail, v->swtail);
|
||||
|
||||
return rc;
|
||||
|
|
Loading…
Add table
Reference in a new issue