On Thu, Jul 01, 2021 at 09:29:24AM +0200, Uwe Kleine-König wrote: > Hello, > > this is the successor of my earlier patch "pwm: Ensure for legacy > drivers that pwm->state stays consistent" that was applied shortly to > next until Geert found a problem with it. > > I split the patch in three parts now: First the legacy handling is just > moved to a separate function without any semantic change. Then a glitch > is fixed, but without the regression I introduced initially. In the > third and last patch the longstanding FIXME about breaking pwm->state if > a callback fails is addressed. > > Uwe Kleine-König (3): > pwm: Move legacy driver handling into a dedicated function > pwm: Prevent a glitch for legacy drivers > pwm: Restore initial state if a legacy callback fails > > drivers/pwm/core.c | 139 ++++++++++++++++++++++++++------------------- > 1 file changed, 79 insertions(+), 60 deletions(-) I've applied this to for-next, let's see if this blows up or not. Thierry