mt7603: print a warning on MAC reset

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2016-02-28 11:14:27 +01:00
parent 779c94e37d
commit 429864f233
+1 -1
View File
@@ -1024,7 +1024,7 @@ void mt7603_mac_work(struct work_struct *work)
if (mt7603_tx_dma_busy(dev)) {
time = MT7603_WATCHDOG_TIME / 10;
if (++dev->tx_check == 10) {
if (WARN_ON_ONCE(++dev->tx_check == 10)) {
mt7603_mac_reset(dev);
goto out;
}