Skip to contentSkip to conversation

dm: i2c: Add a migration method for I2C

PATCH Superseded Simon Glass 2 participants 3 messages Mar 24, 2021 – Mar 25, 2021 Kbuild

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---

 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
#1 lore raw

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

Quoted 39 lines · On Thursday 25 March 2021 12:00:14 Simon Glass wrote:

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.

---

 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 +0 -0
index 2284e8a6f70..77a799a2700 100644

doc/driver-model/migration.rst Deadline: 2020.07 · line 108

Quoted 10 lines
doc/driver-model/migration.rst +7 -0
@@ -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

So network or i2c? Or both subsystems? I'm somehow lost here.

Quoted 4 lines
doc/driver-model/migration.rst +1 -0
+other base driver model options in time for inclusion in the 2021.10 release.
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
#2 lore raw

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

Hi Pali,

Quoted 45 lines · Pali Roh?r
Quoted 43 lines · On Thursday 25 March 2021 12:00:14 Simon Glass wrote:

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.

---

 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 +1 -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.
+
Quoted 8 lines

doc/driver-model/migration.rst Deadline: 2020.07 · line 108

Quoted 6 lines
doc/driver-model/migration.rst +6 -0
+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

So network or i2c? Or both subsystems? I'm somehow lost here.

It should say i2c. I'll send v2 since I really wanted to provoke the discussion of timing.

Quoted 5 lines
Quoted 5 lines
doc/driver-model/migration.rst +1 -1
+other base driver model options in time for inclusion in the 2021.10 release.
--

2.31.0.291.g576ba9dcdaf-goog

Regards,
Simon