Skip to content

Commit

Permalink
mt7603: reset PSE queue hang indicator bits
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Mar 21, 2017
1 parent 38bae1d commit 7168d59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mt7603_mac.c
Expand Up @@ -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);

Expand All @@ -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)
Expand Down
1 change: 1 addition & 0 deletions mt7603_regs.h
Expand Up @@ -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)
Expand Down

0 comments on commit 7168d59

Please sign in to comment.