[U-Boot] [U-Boot-Custodians] [PATCH 1/1] dm: MIGRATION: Add migration plan for CONFIG_DM

Tom Rini trini at konsulko.com
Mon Sep 16 13:36:59 UTC 2019


On Sat, Sep 14, 2019 at 01:44:28PM +0530, Jagan Teki wrote:
> On Sat, Sep 14, 2019 at 1:38 PM Marek Vasut <marex at denx.de> wrote:
> >
> > On 9/14/19 9:58 AM, Heinrich Schuchardt wrote:
> > > For many sub-systems we already require the driver model to be used. Yet
> > > there is still a handful of boards that do not have CONFIG_DM enabled.
> > >
> > > We should make CONFIG_DM compulsory with release v2020.01
> > >
> > > Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> > > ---
> > >  Makefile                       | 8 ++++++++
> > >  doc/driver-model/migration.rst | 8 ++++++++
> > >  2 files changed, 16 insertions(+)
> > >
> > > diff --git a/Makefile b/Makefile
> > > index ae56e47b2c..69a6b503b7 100644
> > > --- a/Makefile
> > > +++ b/Makefile
> > > @@ -936,6 +936,14 @@ ifneq ($(CONFIG_DM_SPI)$(CONFIG_OF_CONTROL),yy)
> > >  endif
> > >  endif
> > >  endif
> > > +ifneq ($(CONFIG_DM),y)
> > > +     @echo >&2 "===================== WARNING ======================"
> > > +     @echo >&2 "This board does not use CONFIG_DM. CONFIG_DM will be"
> > > +     @echo >&2 "compulsory starting with the v2020.01 release."
> > > +     @echo >&2 "Failure to update may result in board removal."
> > > +     @echo >&2 "See doc/driver-model/migration.rst for more info."
> > > +     @echo >&2 "===================================================="
> > > +endif
> > >  ifeq ($(CONFIG_MMC),y)
> > >  ifneq ($(CONFIG_DM_MMC)$(CONFIG_OF_CONTROL)$(CONFIG_BLK),yyy)
> > >       @echo >&2 "===================== WARNING ======================"
> > > diff --git a/doc/driver-model/migration.rst b/doc/driver-model/migration.rst
> > > index 75b85235ef..23f3a61c0f 100644
> > > --- a/doc/driver-model/migration.rst
> > > +++ b/doc/driver-model/migration.rst
> > > @@ -7,6 +7,14 @@ U-Boot has been migrating to a new driver model since its introduction in
> > >  2014. This file describes the schedule for deprecation of pre-driver-model
> > >  features.
> > >
> > > +CONFIG_DM
> > > +---------
> > > +
> > > +* Status: In progress
> > > +* Deadline: 2020.01
> > > +
> > > +Starting with the 2010.01 release CONFIG_DM will be enabled for all boards.
> >
> > But only for U-Boot proper, not for SPL. And this should be explicitly
> > mentioned here.
> 
> Make sense, even mention explicitly for "not possible SoCs/boards, due
> to foot-print blowout" or similar. otherwise DM with SPL would still
> valid by configuring OF_CONTROL or OF_PLATDATA.

Please send a v2 with a longer description in the rst file, based on
this thread, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190916/8b263360/attachment.sig>


More information about the U-Boot mailing list