On Tue, Dec 19, 2023 at 04:30:27PM +0000, Sean Young wrote: > 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@xxxxxxxx> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Attachment:
signature.asc
Description: PGP signature