Skip to contentSkip to conversation

dm: i2c: Add a migration method for I2C

PATCH Superseded Simon Glass 1 participant 1 message Mar 25, 2021 Kbuild

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dm: i2c: Add a migration method for I2C

This probably should have been done a while back since it is a core system. Add a migration deadline of later this year, to catch the stragglers.

---

Changes in v2:
- s/'network'/I2C/

 Makefile                       | 11 +++++++++++
 doc/driver-model/migration.rst |  8 ++++++++
 2 files changed, 19 insertions(+)
Makefile +11 -0
index b72d8d20c08..f60c7901a5b 100644
@@ -1152,6 +1152,17 @@ ifneq ($(CONFIG_SPL_FIT_GENERATOR),)
 	@echo >&2 "to binman instead, to avoid the proliferation of"
 	@echo >&2 "arch-specific scripts with no tests."
 	@echo >&2 "===================================================="
+endif
+ifneq ($(CONFIG_NET),)
+ifneq ($(CONFIG_DM_ETH),y)
+	@echo >&2 "===================== WARNING ======================"
+	@echo >&2 "This board does not use CONFIG_DM_I2C (Driver Model"
+	@echo >&2 "for I2C drivers). Please update the board to use"
+	@echo >&2 "CONFIG_DM_I2C before the v2021.10 release. Failure to"
+	@echo >&2 "update by the deadline may result in board removal."
+	@echo >&2 "See doc/driver-model/migration.rst for more info."
+	@echo >&2 "===================================================="
+endif
 endif
 	@# Check that this build does not use CONFIG options that we do not
 	@# know about unless they are in Kconfig. All the existing CONFIG
doc/driver-model/migration.rst +8 -0
index 2284e8a6f70..77a799a2700 100644
@@ -99,3 +99,11 @@ Deadline: 2020.07
 The network subsystem has supported the driver model since early 2015.
 Maintainers should submit patches switching over to using CONFIG_DM_ETH and
 other base driver model options in time for inclusion in the 2020.07 release.
+
+CONFIG_DM_I2C
+-------------
+Deadline: 2021.10
+
+The network subsystem has supported the driver model since early 2015.
+Maintainers should submit patches switching over to using CONFIG_DM_I2C and
+other base driver model options in time for inclusion in the 2021.10 release.
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog