mt76x2: remove unnecessary MT_TX_ALC_CFG_4 configuration
Subsystems (2)
PATCH 1/1 mt76x2: remove unnecessary MT_TX_ALC_CFG_4 configuration
In reply to a message not in the archiveRemove unnecessary MT_TX_ALC_CFG_4 configuration since register value has already set to 0 on 5GHz band
Signed-off-by Lorenzo Bianconi <[email protected]>
--- drivers/net/wireless/mediatek/mt76/mt76x2_phy.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt76x2_phy.c +0 -1
@@ -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
Felix Fietkau
maintainerQuoted 4 lines · Lorenzo Bianconi
Remove unnecessary
MT_TX_ALC_CFG_4configuration since register value has already set to 0 on 5GHz bandSigned-off-by Lorenzo Bianconi <[email protected]>
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
Quoted 10 lines · Lorenzo Bianconi
Quoted 4 lines
Remove unnecessary
MT_TX_ALC_CFG_4configuration since register value has already set to 0 on 5GHz bandSigned-off-by Lorenzo Bianconi <[email protected]>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