Re: [PATCH] pwm: tiehrpwm: fix copy-paste error in obsolete DT binding fallback
From: Uwe Kleine-König
Date: Mon Nov 23 2026 - 15:52:38 EST
Hello,
On Tue, Sep 29, 2026 at 03:36:40PM +0530, Manush Prajwal wrote:
> Hi Uwe,
>
> Thanks for the quick review and for digging up the Fixes commit.
>
> > Looks right, I guess it needs:
> > Fixes: ae5200d22716 ("pwm: pwm-ti*: Get the clock from the PWMSS parent when using old bindings")
> >
> > I wonder: Did you find this because you still use the old bindings, or
> > by code inspection somehow? If the latter, maybe it's time to drop the
> > handling instead?
>
> This was found purely by code inspection during a review of the PWM
> drivers, not from running older bindings on actual hardware.
>
> Given that this fallback in pwm-tiehrpwm has been effectively broken ever
> since commit ae5200d22716 was merged in 2014 without anyone noticing or
> reporting it, it seems very likely that nobody relies on this obsolete
> binding anymore.
>
> I would be happy to send a patch dropping the obsolete binding handling
> instead (from pwm-tiehrpwm, or from both pwm-tiehrpwm and pwm-tiecap if
> you prefer keeping them consistent).
>
> Or if you'd rather keep backward compatibility, I can send a v2 of this
> fix with the Fixes: tag included.
>
> Which direction would you prefer?
I think dropping the compat handling is fine. I didn't check if
according to the binding, this compat handling is still ok. If yes, this
needs deprecation, too. I wouldn't touch the tiecap driver for now, as
(AFAIU) there is no such breakage and keeping the compat handling there
isn't a burden.
Best regards
Uwe
Attachment:
signature.asc
Description: PGP signature