mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: reset PSE queue hang indicator bits
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+3
-1
@@ -1018,7 +1018,7 @@ void mt7603_mac_reset(struct mt7603_dev *dev)
|
||||
if (!mt76_poll_msec(dev, MT_PSE_RESET, MT_PSE_RESET_SW_S,
|
||||
MT_PSE_RESET_SW_S, 500)) {
|
||||
mt76_clear(dev, MT_PSE_RESET, MT_PSE_RESET_SW);
|
||||
return;
|
||||
goto out;
|
||||
}
|
||||
mt76_clear(dev, MT_PSE_RESET, MT_PSE_RESET_SW_S);
|
||||
|
||||
@@ -1036,6 +1036,8 @@ void mt7603_mac_reset(struct mt7603_dev *dev)
|
||||
|
||||
mt76_clear(dev, addr + MT_CLIENT_RESET_TX,
|
||||
MT_CLIENT_RESET_TX_R_E_1 | MT_CLIENT_RESET_TX_R_E_2);
|
||||
out:
|
||||
mt76_clear(dev, MT_PSE_RESET, MT_PSE_RESET_QUEUES);
|
||||
}
|
||||
|
||||
void mt7603_mac_dma_start(struct mt7603_dev *dev)
|
||||
|
||||
@@ -106,6 +106,7 @@
|
||||
#define MT_PSE_RESET MT_PSE(0x16c)
|
||||
#define MT_PSE_RESET_SW BIT(0)
|
||||
#define MT_PSE_RESET_SW_S BIT(1)
|
||||
#define MT_PSE_RESET_QUEUES GENMASK(6, 2)
|
||||
|
||||
#define MT_PSE_FC_P0 MT_PSE(0x120)
|
||||
#define MT_PSE_FC_P0_MIN_RESERVE GENMASK(11, 0)
|
||||
|
||||
Reference in New Issue
Block a user