Re: [PATCH 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119

From: Romain Gantois

Date: Mon Jun 08 2026 - 11:42:40 EST


On Friday, 5 June 2026 16:20:05 CEST Jonathan Cameron wrote:
> On Fri, 05 Jun 2026 14:24:45 +0200
...
> >
> > > The second patch then just resolves the print that would happen on older
> > > kernels using that fallback due to ID mismatch. That's fine but nice
> > > if older kernels can work with this part.
> >
> > Sorry I don't quite understand: since this is a feature patch, I don't
> > expect it would get backported onto older kernels. Therefore why would
> > the second patch resolve the print happening on older kernels?
>
> The point of a fallback compatible is that we don't have to backport
> anything. New device tree comes along that lists
>
> compatible = "ti,tmp119", "ti,tmp117"
>
> will just work. Older kernel will think it has a tmp117 which is fine as
> they are register interface compatible. It will print a message to say
> that it found an unknown ID but then assume it is what the firmware told
> it, here the tmp117 fallback. With your second patch in place, that
> harmless message will disappear for new kernels.

Ok I understand, thanks for the explanation.

Thanks,

--
Romain Gantois, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Attachment: signature.asc
Description: This is a digitally signed message part.