Skip to contentSkip to conversation

mt76x2: remove unnecessary MT_TX_ALC_CFG_4 configuration

PATCH Superseded Lorenzo Bianconi 2 participants 3 messages Apr 3, 2018 1 message not in the archive

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 mt76x2: remove unnecessary MT_TX_ALC_CFG_4 configuration

Remove unnecessary MT_TX_ALC_CFG_4 configuration since register value has already set to 0 on 5GHz band

---
 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..cbf185e9f707 100644
@@ -294,7 +294,6 @@ mt76x2_phy_set_txpower_regs(struct mt76x2_dev *dev, enum nl80211_band band)
 		} else {
 			mt76_wr(dev, MT_TX0_RF_GAIN_CORR, 0x383c023c);
 			mt76_wr(dev, MT_TX1_RF_GAIN_CORR, 0x24282e28);
-			mt76_wr(dev, MT_TX_ALC_CFG_4, 0);
 		}
 	}
 }
Signature · 1 line
2.14.3
maintainer
#2 lore raw
Quoted 4 lines · Lorenzo Bianconi

Remove unnecessary MT_TX_ALC_CFG_4 configuration since register value has already set to 0 on 5GHz band

If I read the code correctly, I think it makes more sense to remove the previous initialization, in order to have the writes to that register grouped together.

- Felix

#3 lore raw
Quoted 10 lines · Lorenzo Bianconi
Quoted 4 lines

Remove unnecessary MT_TX_ALC_CFG_4 configuration since register value has already set to 0 on 5GHz band

If I read the code correctly, I think it makes more sense to remove the previous initialization, in order to have the writes to that register grouped together.

- Felix

Ack, will do in v2

Regards,
Lorenzo