]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pwm: rzg2l-gpt: Accept requests for too high period length
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Wed, 23 Apr 2025 09:57:15 +0000 (11:57 +0200)
committerUwe Kleine-König <ukleinek@kernel.org>
Wed, 30 Apr 2025 07:01:03 +0000 (09:01 +0200)
commite373991eb9ff0a9617634017c7f19fd36ec4f208
treec4bce0627130876ddd78c38f09dd59da8aa5f32d
parentb6b5683e9692b7ea2d4ca875802ec00a2b78dd66
pwm: rzg2l-gpt: Accept requests for too high period length

The period setting is shared for each pair of PWM channels. So if the
twin channel is in use, the period must not be changed. According to the
usual practise to pick the next smaller possible period, accept a
request for a period that is bigger than the unchangable value.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Tested-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20250423095715.2952692-2-u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-rzg2l-gpt.c