Skip to contentSkip to conversation

mt76x2: remove unnecessary MT_TX_ALC_CFG_4 configuration

PATCH In review Lorenzo Bianconi 3 participants 3 messages Apr 3, 2018 – Apr 24, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mt76x2: remove unnecessary MT_TX_ALC_CFG_4 configuration

Remove unnecessary MT_TX_ALC_CFG_4 configuration since the register value will be properly set according to the usage of an external power amplifier

---
Changes since v1:
- remove first initialization in order to have the writes to that register grouped together in the same if/else chunk

---
 drivers/net/wireless/mediatek/mt76/mt76x2_phy.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt76x2_phy.c +0 -1
index f28c55746cea..42414c5fa01e 100644
@@ -257,7 +257,6 @@ mt76x2_phy_set_txpower_regs(struct mt76x2_dev *dev, enum nl80211_band band)
 			mt76_wr(dev, MT_TX_ALC_CFG_2, 0x1b0f0400);
 			mt76_wr(dev, MT_TX_ALC_CFG_3, 0x1b0f0476);
 		}
-		mt76_wr(dev, MT_TX_ALC_CFG_4, 0);
 
 		if (mt76x2_ext_pa_enabled(dev, band))
 			pa_mode_adj = 0x04000000;
Signature · 1 line
2.16.3
#2 lore raw
In reply to Lorenzo Bianconi
Quoted 5 lines · Lorenzo Bianconi

Remove unnecessary MT_TX_ALC_CFG_4 configuration since the register value will be properly set according to the usage of an external power amplifier

Patch applied to wireless-drivers-next.git, thanks.

cf7b411dcea8 mt76x2: remove unnecessary MT_TX_ALC_CFG_4 configuration

Signature · 3 lines
https://patchwork.kernel.org/patch/10321735/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches