Commit 0063b86c authored by Nicolas Cavallari's avatar Nicolas Cavallari Committed by Felix Fietkau

mt76: mt7915e: Enable thermal management by default

By default, mt7915e does not enable thermal management until the default
thermal zone does not reach a trip point.  If the rest of the system
have better cooling than the wireless hardware, then it is possible that
the wireless chip can overheat while the rest of the system is fine.
Signed-off-by: default avatarNicolas Cavallari <nicolas.cavallari@green-communications.fr>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent db783f10
...@@ -200,7 +200,8 @@ static int mt7915_thermal_init(struct mt7915_phy *phy) ...@@ -200,7 +200,8 @@ static int mt7915_thermal_init(struct mt7915_phy *phy)
phy->throttle_temp[0] = 110; phy->throttle_temp[0] = 110;
phy->throttle_temp[1] = 120; phy->throttle_temp[1] = 120;
return 0; return mt7915_mcu_set_thermal_throttling(phy,
MT7915_THERMAL_THROTTLE_MAX);
} }
static void mt7915_led_set_config(struct led_classdev *led_cdev, static void mt7915_led_set_config(struct led_classdev *led_cdev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment