mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
ath11k: Avoid REO CMD failed prints during firmware recovery
[ Upstream commit0ab52b2bd7] Currently when firmware recovery is in progress, we do not queue REO commands to the firmware, instead -ESHUTDOWN will be returned to the caller leading to a failure print on the console. The REO command in the problem scenario is sent for all tids of a peer in which case we will have 16 failure prints on the console for a single peer. For an AP usecase, this count would be even higher in a worst case scenario. Since these commands are bound to fail during firmware recovery, it is better to avoid printing these failures and thereby avoid message flooding on the console. Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1 Fixes:8ee8d38ca4("ath11k: Fix crash during firmware recovery on reo cmd ring access") Signed-off-by: Manikanta Pubbisetty <quic_mpubbise@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20220602122929.18896-1-quic_mpubbise@quicinc.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
deec1597f3
commit
2fd530d17d
@@ -835,8 +835,9 @@ void ath11k_peer_rx_tid_delete(struct ath11k *ar,
|
|||||||
HAL_REO_CMD_UPDATE_RX_QUEUE, &cmd,
|
HAL_REO_CMD_UPDATE_RX_QUEUE, &cmd,
|
||||||
ath11k_dp_rx_tid_del_func);
|
ath11k_dp_rx_tid_del_func);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
ath11k_err(ar->ab, "failed to send HAL_REO_CMD_UPDATE_RX_QUEUE cmd, tid %d (%d)\n",
|
if (ret != -ESHUTDOWN)
|
||||||
tid, ret);
|
ath11k_err(ar->ab, "failed to send HAL_REO_CMD_UPDATE_RX_QUEUE cmd, tid %d (%d)\n",
|
||||||
|
tid, ret);
|
||||||
dma_unmap_single(ar->ab->dev, rx_tid->paddr, rx_tid->size,
|
dma_unmap_single(ar->ab->dev, rx_tid->paddr, rx_tid->size,
|
||||||
DMA_BIDIRECTIONAL);
|
DMA_BIDIRECTIONAL);
|
||||||
kfree(rx_tid->vaddr);
|
kfree(rx_tid->vaddr);
|
||||||
|
|||||||
Reference in New Issue
Block a user