]> git.baikalelectronics.ru Git - kernel.git/commit
wil6210: prevent usage of tx ring 0 for eDMA
authorMaya Erez <merez@codeaurora.org>
Thu, 23 Aug 2018 11:47:10 +0000 (14:47 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 28 Aug 2018 13:48:46 +0000 (16:48 +0300)
commit6b10caaa222fa208fd645a075e34278b2381e688
tree52ec9b4b6de5a3ed9bedd2d0a07fae51fa7fc6ad
parenta4a8909a50164ea06135f31b67441071c521c7bf
wil6210: prevent usage of tx ring 0 for eDMA

In enhanced DMA ring 0 is used for RX ring, hence TX ring 0
is an unused element in ring_tx and ring2cid_tid arrays.
Initialize ring2cid_tid CID to WIL6210_MAX_CID to prevent a false
match of CID 0.
Go over the ring_tx and ring2cid_tid from wil_get_min_tx_ring_id
and on to prevent access to index 0 in eDMA.

Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/main.c
drivers/net/wireless/ath/wil6210/txrx.c