Skip to content

Commit

Permalink
SM8550: Add fanspeed boot hack
Browse files Browse the repository at this point in the history
  • Loading branch information
r3claimer committed Feb 26, 2025
1 parent 3aa85d9 commit d9be0b6
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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;

0 comments on commit d9be0b6

Please # to comment.