diff options
author | Howard Hsu <howard-yh.hsu@mediatek.com> | 2022-12-14 05:28:07 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2023-02-03 16:47:15 +0300 |
commit | 5ad42d19f6596e54b091827c397fdb7c091d45f7 (patch) | |
tree | 6a4ee9f9b757bd95926985cf1f408c1c030b0c93 /drivers/net/wireless/mediatek/mt76/mt7915/init.c | |
parent | 7d12b38ab6f6b77198cd3a66db19587bbdd3308c (diff) | |
download | linux-5ad42d19f6596e54b091827c397fdb7c091d45f7.tar.xz |
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 <ryder.lee@mediatek.com>
Signed-off-by: Howard Hsu <howard-yh.hsu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7915/init.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7915/init.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/init.c b/drivers/net/wireless/mediatek/mt76/mt7915/init.c index 11407e18e56a..be435ae56bbf 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/init.c @@ -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; |