mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7915: rework mt7915_mcu_set_thermal_throttling
This patch includes 2 changes:
1. Firmware expects to disable thermal protect first before
reconfiguring.
2. Separate setting thermal_protect and setting thermal_tx_duty into
different functions. These two firmware commands do not need to send
together.
Fixes: 34b877d972be ("mt76: mt7915: add thermal cooling device support")
Reviewed-by: Ryder Lee <[email protected]>
Signed-off-by: Howard Hsu <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
15b9dd6b1b
commit
8e5c21fe7c
@@ -134,9 +134,6 @@ mt7915_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev,
|
||||
if (state > MT7915_CDEV_THROTTLE_MAX)
|
||||
return -EINVAL;
|
||||
|
||||
if (phy->throttle_temp[0] > phy->throttle_temp[1])
|
||||
return 0;
|
||||
|
||||
if (state == phy->cdev_state)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user