Messages in this thread | | | Date | Wed, 20 Feb 2019 15:29:23 +0100 | From | Uwe Kleine-König <> | Subject | Re: [PATCH v5 3/3] pwm: core: add consumer device link |
| |
On Wed, Feb 20, 2019 at 02:07:48PM +0100, Fabrice Gasnier wrote: > Add a device link between the PWM consumer and the PWM provider. This > enforces the PWM user to get suspended before the PWM provider. It > allows proper synchronization of suspend/resume sequences: the PWM user > is responsible for properly stopping PWM, before the provider gets > suspended: see [1]. Add the device link in: > - of_pwm_get() > - pwm_get() > - devm_*pwm_get() variants > as it requires a reference to the device for the PWM consumer. > > [1] https://lkml.org/lkml/2019/2/5/770 > > Suggested-by: Thierry Reding <thierry.reding@gmail.com> > Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thanks Uwe
-- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |
| |