Skip to contentSkip to conversation

mt76x2: set default values in TX_ALC_CFG_{1,2} for tempetaure compensation

PATCH In review Lorenzo Bianconi 2 participants 2 messages Apr 4, 2018 – Apr 24, 2018 1 message not in the archive

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

PATCH 1/1 mt76x2: set default values in TX_ALC_CFG_{1,2} for tempetaure compensation

In reply to a message not in the archive

Initialize default values for temperature compensation in TX_ALC_CFG_{1,2} if tssi has been enabled

---
 drivers/net/wireless/mediatek/mt76/mt76x2_phy.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/net/wireless/mediatek/mt76/mt76x2_phy.c +8 -0
index 42414c5fa01e..daecc7ea900a 100644
@@ -660,6 +660,14 @@ int mt76x2_phy_set_channel(struct mt76x2_dev *dev,
 	memcpy(dev->cal.agc_gain_cur, dev->cal.agc_gain_init,
 	       sizeof(dev->cal.agc_gain_cur));
 
+	/* init default values for temp compensation */
+	if (mt76x2_tssi_enabled(dev)) {
+		mt76_rmw_field(dev, MT_TX_ALC_CFG_1, MT_TX_ALC_CFG_1_TEMP_COMP,
+			       0x38);
+		mt76_rmw_field(dev, MT_TX_ALC_CFG_2, MT_TX_ALC_CFG_2_TEMP_COMP,
+			       0x38);
+	}
+
 	ieee80211_queue_delayed_work(mt76_hw(dev), &dev->cal_work,
 				     MT_CALIBRATE_INTERVAL);
 
Signature · 1 line
2.14.3
#2 lore raw

Re: mt76x2: set default values in TX_ALC_CFG_{1, 2} for tempetaure compensation

Quoted 4 lines · Lorenzo Bianconi

Initialize default values for temperature compensation in TX_ALC_CFG_{1,2} if tssi has been enabled

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

b9e5d4feb4fc mt76x2: set default values in TX_ALC_CFG_{1, 2} for tempetaure compensation

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

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