diff options
| author | Uwe Kleine-König <[email protected]> | 2024-11-05 15:35:22 +0000 |
|---|---|---|
| committer | Uwe Kleine-König <[email protected]> | 2024-11-07 11:03:39 +0000 |
| commit | b2eaa1170e45dc18eb09dcc9abafbe9a7502e960 (patch) | |
| tree | e228ed35fefeb29c9aa90f71e4bb20db2d1e2da1 /net/unix/af_unix.c | |
| parent | pwm: core: export pwm_get_state_hw() (diff) | |
| download | kernel-b2eaa1170e45dc18eb09dcc9abafbe9a7502e960.tar.gz kernel-b2eaa1170e45dc18eb09dcc9abafbe9a7502e960.zip | |
pwm: Assume a disabled PWM to emit a constant inactive output
Some PWM hardwares (e.g. MC33XS2410) cannot implement a zero duty cycle
but can instead disable the hardware which also results in a constant
inactive output.
There are some checks (enabled with CONFIG_PWM_DEBUG) to help
implementing a driver without violating the normal rounding rules. Make
them less strict to let above described hardware pass without warning.
Reported-by: Dimitri Fedrau <[email protected]>
Link: https://lore.kernel.org/r/20241103205215.GA509903@debian
Fixes: 3ad1f3a33286 ("pwm: Implement some checks for lowlevel drivers")
Signed-off-by: Uwe Kleine-König <[email protected]>
Reviewed-by: Dimitri Fedrau <[email protected]>
Tested-by: Dimitri Fedrau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
