mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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:
+3
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user