Commit 3a758134 authored by Tim Harvey's avatar Tim Harvey Committed by John W. Linville

ath9k: fix possible hang on flush

If a flush is requested, make sure to clear the descriptor once we've
processed it.

This resolves a hang that will occur if all RX descriptors are full when a
flush is requested.
Signed-off-by: default avatarTim Harvey <tharvey@gateworks.com>
Acked-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 328e203f
...@@ -1113,14 +1113,13 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp) ...@@ -1113,14 +1113,13 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp)
} }
requeue: requeue:
list_add_tail(&bf->list, &sc->rx.rxbuf); list_add_tail(&bf->list, &sc->rx.rxbuf);
if (flush)
continue;
if (edma) { if (edma) {
ath_rx_edma_buf_link(sc, qtype); ath_rx_edma_buf_link(sc, qtype);
} else { } else {
ath_rx_buf_relink(sc, bf); ath_rx_buf_relink(sc, bf);
ath9k_hw_rxena(ah); if (!flush)
ath9k_hw_rxena(ah);
} }
} while (1); } while (1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment