Skip to content

Commit ec8932f

Browse files
Bo Jiaonbd168
authored andcommitted
wifi: mt76: mt7915: only set MT76_MCU_RESET for the main phy
The MT76_MCU_RESET flag is only read on the main phy. Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent a1d9de5 commit ec8932f

File tree

1 file changed

+1
-3
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7915

1 file changed

+1
-3
lines changed

drivers/net/wireless/mediatek/mt76/mt7915/mac.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,10 +1345,8 @@ mt7915_mac_restart(struct mt7915_dev *dev)
13451345
set_bit(MT76_RESET, &dev->mphy.state);
13461346
set_bit(MT76_MCU_RESET, &dev->mphy.state);
13471347
wake_up(&dev->mt76.mcu.wait);
1348-
if (ext_phy) {
1348+
if (ext_phy)
13491349
set_bit(MT76_RESET, &ext_phy->state);
1350-
set_bit(MT76_MCU_RESET, &ext_phy->state);
1351-
}
13521350

13531351
/* lock/unlock all queues to ensure that no tx is pending */
13541352
mt76_txq_schedule_all(&dev->mphy);

0 commit comments

Comments
 (0)