mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
wifi: mt76: mt7996: fix SER reset trigger on WED reset
The firmware needs a specific trigger when WED is being reset due to an ethernet reset condition. This helps prevent further L1 SER failure. Signed-off-by: Rex Lu <rex.lu@mediatek.com> Link: https://patch.msgid.link/20250311103646.43346-2-nbd@nbd.name Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
593c829b43
commit
8d38abdf6c
|
|
@ -896,7 +896,8 @@ enum {
|
|||
UNI_CMD_SER_SET_RECOVER_L3_TX_DISABLE,
|
||||
UNI_CMD_SER_SET_RECOVER_L3_BF,
|
||||
UNI_CMD_SER_SET_RECOVER_L4_MDP,
|
||||
UNI_CMD_SER_SET_RECOVER_FULL,
|
||||
UNI_CMD_SER_SET_RECOVER_FROM_ETH,
|
||||
UNI_CMD_SER_SET_RECOVER_FULL = 8,
|
||||
UNI_CMD_SER_SET_SYSTEM_ASSERT,
|
||||
/* action */
|
||||
UNI_CMD_SER_ENABLE = 1,
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ static int mt7996_mmio_wed_reset(struct mtk_wed_device *wed)
|
|||
if (test_and_set_bit(MT76_STATE_WED_RESET, &mphy->state))
|
||||
return -EBUSY;
|
||||
|
||||
ret = mt7996_mcu_set_ser(dev, UNI_CMD_SER_TRIGGER, UNI_CMD_SER_SET_RECOVER_L1,
|
||||
ret = mt7996_mcu_set_ser(dev, UNI_CMD_SER_TRIGGER, UNI_CMD_SER_SET_RECOVER_FROM_ETH,
|
||||
mphy->band_idx);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user