summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pc87360.c
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@ew.tq-group.com>2022-09-14 17:31:37 +0200
committerGuenter Roeck <linux@roeck-us.net>2022-09-25 23:22:11 +0200
commitb99152d4f04b379e31db6c1a2dda6b272c92039b (patch)
tree4dfa123fcc39be37b006ac865a4d277859503e97 /drivers/hwmon/pc87360.c
parenthwmon: (pwm-fan) split __set_pwm into locked/unlocked functions (diff)
downloadlinux-b99152d4f04b379e31db6c1a2dda6b272c92039b.tar.xz
linux-b99152d4f04b379e31db6c1a2dda6b272c92039b.zip
hwmon: (pwm-fan) Switch regulator dynamically
This adds the enable attribute which is used to select if zero PWM duty means to switch off regulator and PWM or to keep them enabled but at inactive PWM output level. Depending on the select enable mode, turn off the regulator and PWM if the PWM duty is zero, or keep them enabled. This is especially important for fan using inverted PWM signal polarity. Having regulator supplied and PWM disabled, some PWM controllers provide the active, rather than inactive signal. With this change the shutdown as well as suspend/resume paths require modifcations as well. Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Link: https://lore.kernel.org/r/20220914153137.613982-6-alexander.stein@ew.tq-group.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pc87360.c')
0 files changed, 0 insertions, 0 deletions