summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2025-04-05 12:27:12 +0300
committerUwe Kleine-König <ukleinek@kernel.org>2025-04-07 16:10:13 +0300
commit00e53d0f4baedd72196b65f00698b2a5a537dc2b (patch)
tree27a24351dfff3fe65e439814e129cb1e8a18a3a4 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parent928446a5302eee30ebb32075c0db5dda5a138fb7 (diff)
downloadlinux-00e53d0f4baedd72196b65f00698b2a5a537dc2b.tar.xz
pwm: Let pwm_set_waveform() succeed even if lowlevel driver rounded up
Waveform parameters are supposed to be rounded down to the next value possible for the hardware. However when a requested value is too small, .round_waveform_tohw() is supposed to pick the next bigger value and return 1. Let pwm_set_waveform() behave in the same way. This creates consistency between pwm_set_waveform_might_sleep() with exact=false and pwm_round_waveform_might_sleep() + pwm_set_waveform_might_sleep() with exact=true. The PWM_DEBUG rounding check has to be adapted to only trigger if no uprounding happend. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Tested-by: Trevor Gamblin <tgamblin@baylibre.com> Link: https://lore.kernel.org/r/353dc6ae31be815e41fd3df89c257127ca0d1a09.1743844730.git.u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions