* Question regarding back compatibility for DT
@ 2017-03-21 15:58 Daniel Lezcano
2017-03-21 16:16 ` Warner Losh
2017-03-21 16:27 ` Rob Herring
0 siblings, 2 replies; 5+ messages in thread
From: Daniel Lezcano @ 2017-03-21 15:58 UTC (permalink / raw)
To: Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA; +Cc: Alexander Kochetkov
Hi Rob, dt people,
is it acceptable a driver is changed using a new DT binding but becomes
incompatible with the old DT files ?
IOW, is it possible to change the DT and the driver without supporting the old
DT format, forcing an update of the DT and the kernel ?
Thanks.
-- Daniel
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question regarding back compatibility for DT
2017-03-21 15:58 Question regarding back compatibility for DT Daniel Lezcano
@ 2017-03-21 16:16 ` Warner Losh
[not found] ` <CANCZdfpwRSSEhBcr_BrvRj4MfBbMHSYpC+wJvm7fU6h=GXkqtg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-21 16:27 ` Rob Herring
1 sibling, 1 reply; 5+ messages in thread
From: Warner Losh @ 2017-03-21 16:16 UTC (permalink / raw)
To: Daniel Lezcano
Cc: Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Alexander Kochetkov
On Tue, Mar 21, 2017 at 8:58 AM, Daniel Lezcano
<daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> Hi Rob, dt people,
>
> is it acceptable a driver is changed using a new DT binding but becomes
> incompatible with the old DT files ?
>
> IOW, is it possible to change the DT and the driver without supporting the old
> DT format, forcing an update of the DT and the kernel ?
I've seen new properties many times added, even though the new driver
wouldn't work quite right on old DT files. I've also seen people
create a new hardware compatibility name for a totally new binding.
Finally, I've seen the bindings just randomly change for no reason
with no concern for backwards compat. The last really sucks if you
have a driver that's not in the Linux tree (say, because it's a
FreeBSD driver).
Warner
> Thanks.
>
> -- Daniel
>
> --
>
> <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
>
> Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
> <http://twitter.com/#!/linaroorg> Twitter |
> <http://www.linaro.org/linaro-blog/> Blog
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question regarding back compatibility for DT
2017-03-21 15:58 Question regarding back compatibility for DT Daniel Lezcano
2017-03-21 16:16 ` Warner Losh
@ 2017-03-21 16:27 ` Rob Herring
[not found] ` <CABGGisyuq6=3RTKZ7ceUjt_iFZVag0EMViqmXSKSg5bM2-o-Cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
1 sibling, 1 reply; 5+ messages in thread
From: Rob Herring @ 2017-03-21 16:27 UTC (permalink / raw)
To: Daniel Lezcano
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Alexander Kochetkov
On Tue, Mar 21, 2017 at 10:58 AM, Daniel Lezcano
<daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> Hi Rob, dt people,
>
> is it acceptable a driver is changed using a new DT binding but becomes
> incompatible with the old DT files ?
>
> IOW, is it possible to change the DT and the driver without supporting the old
> DT format, forcing an update of the DT and the kernel ?
If you want a global rule, then no it is not okay. However, it depends
on the platform and it's users. I just ask that breaking compatibility
and why is highlighted in the commit message and the platform
maintainer is okay with it.
Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question regarding back compatibility for DT
[not found] ` <CANCZdfpwRSSEhBcr_BrvRj4MfBbMHSYpC+wJvm7fU6h=GXkqtg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-03-21 16:36 ` Rob Herring
0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2017-03-21 16:36 UTC (permalink / raw)
To: Warner Losh
Cc: Daniel Lezcano,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Alexander Kochetkov
On Tue, Mar 21, 2017 at 11:16 AM, Warner Losh <imp-uzTCJ5RojNnQT0dZR+AlfA@public.gmane.org> wrote:
> On Tue, Mar 21, 2017 at 8:58 AM, Daniel Lezcano
> <daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
>> Hi Rob, dt people,
>>
>> is it acceptable a driver is changed using a new DT binding but becomes
>> incompatible with the old DT files ?
>>
>> IOW, is it possible to change the DT and the driver without supporting the old
>> DT format, forcing an update of the DT and the kernel ?
>
> I've seen new properties many times added, even though the new driver
> wouldn't work quite right on old DT files. I've also seen people
> create a new hardware compatibility name for a totally new binding.
> Finally, I've seen the bindings just randomly change for no reason
> with no concern for backwards compat. The last really sucks if you
> have a driver that's not in the Linux tree (say, because it's a
> FreeBSD driver).
Hopefully that is getting better? If not, how do we make it better? I
try to prevent it through reviews, but I have have no visibility into
what FreeBSD does and doesn't care about.
The common suggestion is moving the bindings out of the kernel. The
biggest issue I have with that is that we would lose the review of all
the kernel subsystem maintainers. They may be biased toward Linux, but
they know their class of h/w and no other project has the breath of
h/w support.
Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question regarding back compatibility for DT
[not found] ` <CABGGisyuq6=3RTKZ7ceUjt_iFZVag0EMViqmXSKSg5bM2-o-Cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-03-21 21:56 ` Daniel Lezcano
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Lezcano @ 2017-03-21 21:56 UTC (permalink / raw)
To: Rob Herring
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Alexander Kochetkov
On Tue, Mar 21, 2017 at 11:27:37AM -0500, Rob Herring wrote:
> On Tue, Mar 21, 2017 at 10:58 AM, Daniel Lezcano
> <daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> > Hi Rob, dt people,
> >
> > is it acceptable a driver is changed using a new DT binding but becomes
> > incompatible with the old DT files ?
> >
> > IOW, is it possible to change the DT and the driver without supporting the old
> > DT format, forcing an update of the DT and the kernel ?
>
> If you want a global rule, then no it is not okay. However, it depends
> on the platform and it's users. I just ask that breaking compatibility
> and why is highlighted in the commit message and the platform
> maintainer is okay with it.
Thanks for the clarification. I will ask the maintainer if breaking the
compatibility is ok.
That shows how important is to wisely choose the right binding.
-- Daniel
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-03-21 21:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-21 15:58 Question regarding back compatibility for DT Daniel Lezcano
2017-03-21 16:16 ` Warner Losh
[not found] ` <CANCZdfpwRSSEhBcr_BrvRj4MfBbMHSYpC+wJvm7fU6h=GXkqtg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-21 16:36 ` Rob Herring
2017-03-21 16:27 ` Rob Herring
[not found] ` <CABGGisyuq6=3RTKZ7ceUjt_iFZVag0EMViqmXSKSg5bM2-o-Cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-21 21:56 ` Daniel Lezcano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).