Files
Sean Young e781637cb0 pwm: Make it possible to apply PWM changes in atomic context
commit 7170d3beaf upstream.

Some PWM devices require sleeping, for example if the pwm device is
connected over I2C. However, many PWM devices could be used from atomic
context, e.g. memory mapped PWM. This is useful for, for example, the
pwm-ir-tx driver which requires precise timing. Sleeping causes havoc
with the generated IR signal.

Since not all PWM devices can support atomic context, we also add a
pwm_might_sleep() function to check if is not supported.

Signed-off-by: Sean Young <sean@mess.org>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2024-03-08 16:01:49 +00:00
..
2023-04-26 15:43:19 -07:00
2022-11-15 14:52:38 -07:00
2023-05-09 11:54:42 +02:00
2020-06-02 20:32:53 -03:00
2020-12-10 22:37:32 +01:00
2023-07-08 11:05:05 -04:00
2023-04-05 19:41:11 +02:00
2023-07-24 12:12:24 +02:00
2022-06-10 15:38:14 +02:00
2023-05-09 11:54:42 +02:00