Skip to content

Commit

Permalink
mt76: mt7915e: Enable thermal management by default
Browse files Browse the repository at this point in the history
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: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
Nicolas Cavallari authored and Felix Fietkau committed Feb 24, 2022
1 parent db783f1 commit 0063b86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/mediatek/mt76/mt7915/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ static int mt7915_thermal_init(struct mt7915_phy *phy)
phy->throttle_temp[0] = 110;
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,
Expand Down

0 comments on commit 0063b86

Please sign in to comment.