mt76: mt76x02: improve tx hang detection
authorFelix Fietkau <nbd@nbd.name>
Mon, 31 Jan 2022 14:04:43 +0000 (15:04 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 3 Feb 2022 13:34:35 +0000 (14:34 +0100)
commitc007ef8c339d1eb319163bf576da0f180e162060
treed2560c37038962084341bfce75b71bcd46f4955c
parent2aa6c0fb755710a32f30b12dc9bec52929b8b988
mt76: mt76x02: improve tx hang detection

Instead of checking if any queue has not made progress since the last run,
only trigger hang detection if one of the queues has not made any progress
in 10 subsequent runs. This should reduce false positive firmware restarts

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02.h
drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c