* [U-Boot] [PATCH v2 1/1] dm: MIGRATION: Add migration plan for CONFIG_DM
@ 2019-09-16 16:41 Heinrich Schuchardt
2019-09-16 17:25 ` Simon Glass
2019-09-20 14:50 ` Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Heinrich Schuchardt @ 2019-09-16 16:41 UTC (permalink / raw)
To: u-boot
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
Conversion dates for CONFIG_DM_SPL and CONFIG_DM_TPL are yet to be defined.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
v2
CONFIG_DM_SPL and CONFIG_DM_TPL are not concerned.
---
Makefile | 8 ++++++++
doc/driver-model/migration.rst | 10 ++++++++++
2 files changed, 18 insertions(+)
diff --git a/Makefile b/Makefile
index 57d0700227..ffc2c4b3e4 100644
--- a/Makefile
+++ b/Makefile
@@ -940,6 +940,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..0b0ee44ca2 100644
--- a/doc/driver-model/migration.rst
+++ b/doc/driver-model/migration.rst
@@ -7,6 +7,16 @@ 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.
+This does not concern CONFIG_DM_SPL and CONFIG_DM_TPL. The conversion date for
+these configuration items still needs to be defined.
+
CONFIG_DM_MMC
-------------
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v2 1/1] dm: MIGRATION: Add migration plan for CONFIG_DM
2019-09-16 16:41 [U-Boot] [PATCH v2 1/1] dm: MIGRATION: Add migration plan for CONFIG_DM Heinrich Schuchardt
@ 2019-09-16 17:25 ` Simon Glass
2019-09-20 14:50 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2019-09-16 17:25 UTC (permalink / raw)
To: u-boot
On Mon, 16 Sep 2019 at 10:41, Heinrich Schuchardt <xypron.glpk@gmx.de> 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
>
> Conversion dates for CONFIG_DM_SPL and CONFIG_DM_TPL are yet to be defined.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> v2
> CONFIG_DM_SPL and CONFIG_DM_TPL are not concerned.
> ---
> Makefile | 8 ++++++++
> doc/driver-model/migration.rst | 10 ++++++++++
> 2 files changed, 18 insertions(+)
Reviewed-by: Simon Glass <sjg@chromium.org>
I think we should move SPL to of-platdata and thus require DM there
also. But that requires a bit more discussion!
Regards,
Simon
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v2 1/1] dm: MIGRATION: Add migration plan for CONFIG_DM
2019-09-16 16:41 [U-Boot] [PATCH v2 1/1] dm: MIGRATION: Add migration plan for CONFIG_DM Heinrich Schuchardt
2019-09-16 17:25 ` Simon Glass
@ 2019-09-20 14:50 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2019-09-20 14:50 UTC (permalink / raw)
To: u-boot
On Mon, Sep 16, 2019 at 06:41:42PM +0200, 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
>
> Conversion dates for CONFIG_DM_SPL and CONFIG_DM_TPL are yet to be defined.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> Reviewed-by: Simon Glass <sjg@chromium.org>
Applied to u-boot/master, 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/20190920/2b80be29/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-09-20 14:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-16 16:41 [U-Boot] [PATCH v2 1/1] dm: MIGRATION: Add migration plan for CONFIG_DM Heinrich Schuchardt
2019-09-16 17:25 ` Simon Glass
2019-09-20 14:50 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox