mt7603: clear PSE reset bit if PSE reset fails

If the firmware is blocked, it should not continue to attempt a reset
until it is safe to do so

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2018-05-20 07:57:25 +02:00
parent f24b56f935
commit d87e4b0252
+3 -2
View File
@@ -1181,9 +1181,10 @@ static void mt7603_pse_reset(struct mt7603_dev *dev)
if (!mt76_poll_msec(dev, MT_MCU_DEBUG_RESET,
MT_MCU_DEBUG_RESET_PSE_S,
MT_MCU_DEBUG_RESET_PSE_S, 500))
MT_MCU_DEBUG_RESET_PSE_S, 500)) {
mt76_clear(dev, MT_MCU_DEBUG_RESET, MT_MCU_DEBUG_RESET_PSE);
dev->pse_reset_failed++;
else
} else
dev->pse_reset_failed = 0;
mt76_clear(dev, MT_MCU_DEBUG_RESET, MT_MCU_DEBUG_RESET_QUEUES);