Files
build/patch/kernel/archive/sm8550-6.12/9997-set-boot-fanspeed.patch
2025-03-15 10:29:56 +01:00

13 lines
557 B
Diff

diff -rupbN linux.orig/drivers/hwmon/pwm-fan.c linux/drivers/hwmon/pwm-fan.c
--- linux.orig/drivers/hwmon/pwm-fan.c 2024-10-19 13:35:29.516991617 +0000
+++ linux/drivers/hwmon/pwm-fan.c 2024-11-18 15:41:47.343729846 +0000
@@ -530,7 +530,7 @@ static int pwm_fan_probe(struct platform
* Set duty cycle to maximum allowed and enable PWM output as well as
* the regulator. In case of error nothing is changed
*/
- ret = set_pwm(ctx, MAX_PWM);
+ ret = set_pwm(ctx, 70);
if (ret) {
dev_err(dev, "Failed to configure PWM: %d\n", ret);
return ret;