ath11k: Fix target crash due to WBM_IDLE_LINK ring desc shortage
authorVasanthakumar Thiagarajan <vthiagar@codeaurora.org>
Wed, 27 Nov 2019 16:30:09 +0000 (18:30 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 Nov 2019 07:36:19 +0000 (09:36 +0200)
commit051cefa4466744cb669d7eef9399cbf850b2a6d4
tree8d4de0b7c81e1cddcd9ca30dabeed41bd606c505
parent79c647a3c59ddc1a1acf68e82e555201c10d3c18
ath11k: Fix target crash due to WBM_IDLE_LINK ring desc shortage

Make sure the number of WBM_IDLE_LINK ring descriptors is power
of 2. This increases the number of descriptors to 32k from the
current ~18k to fix the target assert because of the shortage in
the descriptors in WBM_IDLE_LINK ring. Remove unnecessary
power of 2 calculation in ath11k_dp_link_desc_setup() as it is
not required after this change.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath11k/dp.c