projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1d9de5
)
wifi: mt76: mt7915: only set MT76_MCU_RESET for the main phy
author
Bo Jiao
<Bo.Jiao@mediatek.com>
Thu, 7 Mar 2024 03:03:08 +0000
(11:03 +0800)
committer
Felix Fietkau
<nbd@nbd.name>
Thu, 2 May 2024 10:44:50 +0000
(12:44 +0200)
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>
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
index f350b3f7a0bde628e6ad062bea7a64d504e77af1..8008ce3fa6c7eaca4ef8b4f937a2f0117ec56092 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
@@
-1345,10
+1345,8
@@
mt7915_mac_restart(struct mt7915_dev *dev)
set_bit(MT76_RESET, &dev->mphy.state);
set_bit(MT76_MCU_RESET, &dev->mphy.state);
wake_up(&dev->mt76.mcu.wait);
- if (ext_phy)
{
+ if (ext_phy)
set_bit(MT76_RESET, &ext_phy->state);
- set_bit(MT76_MCU_RESET, &ext_phy->state);
- }
/* lock/unlock all queues to ensure that no tx is pending */
mt76_txq_schedule_all(&dev->mphy);