Sean Young 7170d3beaf pwm: Make it possible to apply PWM changes in atomic context
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>
2023-12-20 16:07:06 +01:00
..
2023-04-27 11:53:57 -07:00
2023-04-26 15:43:19 -07:00
2022-11-15 14:52:38 -07: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