* [PATCH v3] dm: i2c: Add a migration method for I2C
@ 2021-03-25 0:39 Simon Glass
2021-03-25 0:52 ` Pali Rohár
2021-03-25 15:59 ` Tom Rini
0 siblings, 2 replies; 11+ messages in thread
From: Simon Glass @ 2021-03-25 0:39 UTC (permalink / raw)
To: u-boot
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.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
Changes in v3:
- s/'network'/I2C/ again
Changes in v2:
- s/'network'/I2C/
Makefile | 11 +++++++++++
doc/driver-model/migration.rst | 8 ++++++++
2 files changed, 19 insertions(+)
diff --git a/Makefile b/Makefile
index b72d8d20c08..f60c7901a5b 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/doc/driver-model/migration.rst b/doc/driver-model/migration.rst
index 2284e8a6f70..8d0bb7635b5 100644
--- a/doc/driver-model/migration.rst
+++ b/doc/driver-model/migration.rst
@@ -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 I2C 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.
--
2.31.0.291.g576ba9dcdaf-goog
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v3] dm: i2c: Add a migration method for I2C
2021-03-25 0:39 [PATCH v3] dm: i2c: Add a migration method for I2C Simon Glass
@ 2021-03-25 0:52 ` Pali Rohár
2021-03-25 15:59 ` Tom Rini
1 sibling, 0 replies; 11+ messages in thread
From: Pali Rohár @ 2021-03-25 0:52 UTC (permalink / raw)
To: u-boot
On Thursday 25 March 2021 13:39:28 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.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
>
> ---
>
> Changes in v3:
> - s/'network'/I2C/ again
>
> Changes in v2:
> - s/'network'/I2C/
>
> Makefile | 11 +++++++++++
> doc/driver-model/migration.rst | 8 ++++++++
> 2 files changed, 19 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index b72d8d20c08..f60c7901a5b 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -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"
"This board does not use CONFIG_DM_I2C" but you are checking for CONFIG_NET :)
> + @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
> diff --git a/doc/driver-model/migration.rst b/doc/driver-model/migration.rst
> index 2284e8a6f70..8d0bb7635b5 100644
> --- a/doc/driver-model/migration.rst
> +++ b/doc/driver-model/migration.rst
> @@ -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 I2C 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.
> --
> 2.31.0.291.g576ba9dcdaf-goog
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3] dm: i2c: Add a migration method for I2C
2021-03-25 0:39 [PATCH v3] dm: i2c: Add a migration method for I2C Simon Glass
2021-03-25 0:52 ` Pali Rohár
@ 2021-03-25 15:59 ` Tom Rini
2021-03-25 17:48 ` Simon Glass
1 sibling, 1 reply; 11+ messages in thread
From: Tom Rini @ 2021-03-25 15:59 UTC (permalink / raw)
To: u-boot
On Thu, Mar 25, 2021 at 01:39:28PM +1300, 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.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
What boards trigger this warning when done on top of say the
WIP/remove-non-AHCI_LIBATA-drivers branch I've pushed to my github or
WIP/make-DM_PCI-fatal which has more removals, but I need to cycle back
to and finish removing even more boards I suspect.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210325/295b4e45/attachment.sig>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3] dm: i2c: Add a migration method for I2C
2021-03-25 15:59 ` Tom Rini
@ 2021-03-25 17:48 ` Simon Glass
2021-03-25 19:05 ` Tom Rini
0 siblings, 1 reply; 11+ messages in thread
From: Simon Glass @ 2021-03-25 17:48 UTC (permalink / raw)
To: u-boot
Hi Tom,
On Fri, 26 Mar 2021 at 04:59, Tom Rini <trini@konsulko.com> wrote:
>
> On Thu, Mar 25, 2021 at 01:39:28PM +1300, 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.
> >
> > Signed-off-by: Simon Glass <sjg@chromium.org>
>
> What boards trigger this warning when done on top of say the
> WIP/remove-non-AHCI_LIBATA-drivers branch I've pushed to my github or
> WIP/make-DM_PCI-fatal which has more removals, but I need to cycle back
> to and finish removing even more boards I suspect.
With us/WIP/make-DM_PCI-fatal it looks like 250.
Regards,
Simon
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3] dm: i2c: Add a migration method for I2C
2021-03-25 17:48 ` Simon Glass
@ 2021-03-25 19:05 ` Tom Rini
2021-03-25 19:11 ` Simon Glass
0 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2021-03-25 19:05 UTC (permalink / raw)
To: u-boot
On Fri, Mar 26, 2021 at 06:48:26AM +1300, Simon Glass wrote:
> Hi Tom,
>
> On Fri, 26 Mar 2021 at 04:59, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Thu, Mar 25, 2021 at 01:39:28PM +1300, 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.
> > >
> > > Signed-off-by: Simon Glass <sjg@chromium.org>
> >
> > What boards trigger this warning when done on top of say the
> > WIP/remove-non-AHCI_LIBATA-drivers branch I've pushed to my github or
> > WIP/make-DM_PCI-fatal which has more removals, but I need to cycle back
> > to and finish removing even more boards I suspect.
>
> With us/WIP/make-DM_PCI-fatal it looks like 250.
Ugh. Can you link me the CI run please? I'm curious about which.
Then we can introduce this warning for v2021.04 (I'll grab it shortly)
and set the deadline of v2022.04 (a year of being loud) and hopefully
things are migrated / otherwise removed before v2024.04 and they get
nuked like we're starting with now on v2019.xx deadlines.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210325/3321a22a/attachment.sig>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3] dm: i2c: Add a migration method for I2C
2021-03-25 19:05 ` Tom Rini
@ 2021-03-25 19:11 ` Simon Glass
2021-03-25 19:30 ` Tom Rini
0 siblings, 1 reply; 11+ messages in thread
From: Simon Glass @ 2021-03-25 19:11 UTC (permalink / raw)
To: u-boot
Hi Tom,
On Fri, 26 Mar 2021 at 08:05, Tom Rini <trini@konsulko.com> wrote:
>
> On Fri, Mar 26, 2021 at 06:48:26AM +1300, Simon Glass wrote:
> > Hi Tom,
> >
> > On Fri, 26 Mar 2021 at 04:59, Tom Rini <trini@konsulko.com> wrote:
> > >
> > > On Thu, Mar 25, 2021 at 01:39:28PM +1300, 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.
> > > >
> > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > >
> > > What boards trigger this warning when done on top of say the
> > > WIP/remove-non-AHCI_LIBATA-drivers branch I've pushed to my github or
> > > WIP/make-DM_PCI-fatal which has more removals, but I need to cycle back
> > > to and finish removing even more boards I suspect.
> >
> > With us/WIP/make-DM_PCI-fatal it looks like 250.
>
> Ugh. Can you link me the CI run please? I'm curious about which.
Sorry, I did it locally
https://pastebin.com/Wq8vgtSx
>
> Then we can introduce this warning for v2021.04 (I'll grab it shortly)
> and set the deadline of v2022.04 (a year of being loud) and hopefully
> things are migrated / otherwise removed before v2024.04 and they get
> nuked like we're starting with now on v2019.xx deadlines.
Do you mean 2022.04? My view has become that things that haven't been
done probably won't be, so we should save ourselves the trouble and
cost of maintaining the boards and just remove them now. For example,
the Kconfig migration would be in much better shape (although I
haven't analysed how much better).
Note I sent a series to clean up the warnings, plus add I2C and GPIO,
so you should look at that instead of this patch.
Regards,
Simon
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3] dm: i2c: Add a migration method for I2C
2021-03-25 19:11 ` Simon Glass
@ 2021-03-25 19:30 ` Tom Rini
2021-03-25 19:41 ` Simon Glass
0 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2021-03-25 19:30 UTC (permalink / raw)
To: u-boot
On Fri, Mar 26, 2021 at 08:11:30AM +1300, Simon Glass wrote:
> Hi Tom,
>
> On Fri, 26 Mar 2021 at 08:05, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Fri, Mar 26, 2021 at 06:48:26AM +1300, Simon Glass wrote:
> > > Hi Tom,
> > >
> > > On Fri, 26 Mar 2021 at 04:59, Tom Rini <trini@konsulko.com> wrote:
> > > >
> > > > On Thu, Mar 25, 2021 at 01:39:28PM +1300, 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.
> > > > >
> > > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > >
> > > > What boards trigger this warning when done on top of say the
> > > > WIP/remove-non-AHCI_LIBATA-drivers branch I've pushed to my github or
> > > > WIP/make-DM_PCI-fatal which has more removals, but I need to cycle back
> > > > to and finish removing even more boards I suspect.
> > >
> > > With us/WIP/make-DM_PCI-fatal it looks like 250.
> >
> > Ugh. Can you link me the CI run please? I'm curious about which.
>
> Sorry, I did it locally
>
> https://pastebin.com/Wq8vgtSx
I'm having trouble with that, sorry. It looks like it's complaining
about boards that with your series applied locally don't throw up a
warning about I2C (but do for DM_ETH, which already has a soon
deadline).
> > Then we can introduce this warning for v2021.04 (I'll grab it shortly)
> > and set the deadline of v2022.04 (a year of being loud) and hopefully
> > things are migrated / otherwise removed before v2024.04 and they get
> > nuked like we're starting with now on v2019.xx deadlines.
>
> Do you mean 2022.04? My view has become that things that haven't been
> done probably won't be, so we should save ourselves the trouble and
> cost of maintaining the boards and just remove them now. For example,
> the Kconfig migration would be in much better shape (although I
> haven't analysed how much better).
>
> Note I sent a series to clean up the warnings, plus add I2C and GPIO,
> so you should look at that instead of this patch.
Well, lets get some numbers on what boards throw this I2C warning first.
I did a quick merge of this series and pushed WIP/add-DM_I2C-warning
right now and I'm doing the before/after build now.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210325/a3e6b9c7/attachment.sig>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3] dm: i2c: Add a migration method for I2C
2021-03-25 19:30 ` Tom Rini
@ 2021-03-25 19:41 ` Simon Glass
2021-03-25 22:45 ` Tom Rini
0 siblings, 1 reply; 11+ messages in thread
From: Simon Glass @ 2021-03-25 19:41 UTC (permalink / raw)
To: u-boot
Hi Tom,
On Fri, 26 Mar 2021 at 08:30, Tom Rini <trini@konsulko.com> wrote:
>
> On Fri, Mar 26, 2021 at 08:11:30AM +1300, Simon Glass wrote:
> > Hi Tom,
> >
> > On Fri, 26 Mar 2021 at 08:05, Tom Rini <trini@konsulko.com> wrote:
> > >
> > > On Fri, Mar 26, 2021 at 06:48:26AM +1300, Simon Glass wrote:
> > > > Hi Tom,
> > > >
> > > > On Fri, 26 Mar 2021 at 04:59, Tom Rini <trini@konsulko.com> wrote:
> > > > >
> > > > > On Thu, Mar 25, 2021 at 01:39:28PM +1300, 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.
> > > > > >
> > > > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > > >
> > > > > What boards trigger this warning when done on top of say the
> > > > > WIP/remove-non-AHCI_LIBATA-drivers branch I've pushed to my github or
> > > > > WIP/make-DM_PCI-fatal which has more removals, but I need to cycle back
> > > > > to and finish removing even more boards I suspect.
> > > >
> > > > With us/WIP/make-DM_PCI-fatal it looks like 250.
> > >
> > > Ugh. Can you link me the CI run please? I'm curious about which.
> >
> > Sorry, I did it locally
> >
> > https://pastebin.com/Wq8vgtSx
>
> I'm having trouble with that, sorry. It looks like it's complaining
> about boards that with your series applied locally don't throw up a
> warning about I2C (but do for DM_ETH, which already has a soon
> deadline).
Yes I was just going off the number of migration messages in the
output (using grep).
>
> > > Then we can introduce this warning for v2021.04 (I'll grab it shortly)
> > > and set the deadline of v2022.04 (a year of being loud) and hopefully
> > > things are migrated / otherwise removed before v2024.04 and they get
> > > nuked like we're starting with now on v2019.xx deadlines.
> >
> > Do you mean 2022.04? My view has become that things that haven't been
> > done probably won't be, so we should save ourselves the trouble and
> > cost of maintaining the boards and just remove them now. For example,
> > the Kconfig migration would be in much better shape (although I
> > haven't analysed how much better).
> >
> > Note I sent a series to clean up the warnings, plus add I2C and GPIO,
> > so you should look at that instead of this patch.
>
> Well, lets get some numbers on what boards throw this I2C warning first.
> I did a quick merge of this series and pushed WIP/add-DM_I2C-warning
> right now and I'm doing the before/after build now.
OK.
Regards,
Simon
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3] dm: i2c: Add a migration method for I2C
2021-03-25 19:41 ` Simon Glass
@ 2021-03-25 22:45 ` Tom Rini
2021-03-26 0:14 ` Tom Rini
0 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2021-03-25 22:45 UTC (permalink / raw)
To: u-boot
On Fri, Mar 26, 2021 at 08:41:42AM +1300, Simon Glass wrote:
> Hi Tom,
>
> On Fri, 26 Mar 2021 at 08:30, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Fri, Mar 26, 2021 at 08:11:30AM +1300, Simon Glass wrote:
> > > Hi Tom,
> > >
> > > On Fri, 26 Mar 2021 at 08:05, Tom Rini <trini@konsulko.com> wrote:
> > > >
> > > > On Fri, Mar 26, 2021 at 06:48:26AM +1300, Simon Glass wrote:
> > > > > Hi Tom,
> > > > >
> > > > > On Fri, 26 Mar 2021 at 04:59, Tom Rini <trini@konsulko.com> wrote:
> > > > > >
> > > > > > On Thu, Mar 25, 2021 at 01:39:28PM +1300, 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.
> > > > > > >
> > > > > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > > > >
> > > > > > What boards trigger this warning when done on top of say the
> > > > > > WIP/remove-non-AHCI_LIBATA-drivers branch I've pushed to my github or
> > > > > > WIP/make-DM_PCI-fatal which has more removals, but I need to cycle back
> > > > > > to and finish removing even more boards I suspect.
> > > > >
> > > > > With us/WIP/make-DM_PCI-fatal it looks like 250.
> > > >
> > > > Ugh. Can you link me the CI run please? I'm curious about which.
> > >
> > > Sorry, I did it locally
> > >
> > > https://pastebin.com/Wq8vgtSx
> >
> > I'm having trouble with that, sorry. It looks like it's complaining
> > about boards that with your series applied locally don't throw up a
> > warning about I2C (but do for DM_ETH, which already has a soon
> > deadline).
>
> Yes I was just going off the number of migration messages in the
> output (using grep).
>
> >
> > > > Then we can introduce this warning for v2021.04 (I'll grab it shortly)
> > > > and set the deadline of v2022.04 (a year of being loud) and hopefully
> > > > things are migrated / otherwise removed before v2024.04 and they get
> > > > nuked like we're starting with now on v2019.xx deadlines.
> > >
> > > Do you mean 2022.04? My view has become that things that haven't been
> > > done probably won't be, so we should save ourselves the trouble and
> > > cost of maintaining the boards and just remove them now. For example,
> > > the Kconfig migration would be in much better shape (although I
> > > haven't analysed how much better).
> > >
> > > Note I sent a series to clean up the warnings, plus add I2C and GPIO,
> > > so you should look at that instead of this patch.
> >
> > Well, lets get some numbers on what boards throw this I2C warning first.
> > I did a quick merge of this series and pushed WIP/add-DM_I2C-warning
> > right now and I'm doing the before/after build now.
>
> OK.
So, the list of DM_I2C violators is:
am335x_guardian am335x_shc am335x_shc_ict am335x_shc_netboot
am335x_shc_sdboot cm_t335 cm_t43 chiliboard am335x_igep003x draco etamin
rastaban thuban pxm2 rut am335x_sl50 am335x_baltos igep00x0 omap3_beagle
omap3_evm devkit8000 omap4_panda omap4_sdp4430 omap5_uevm all of which
are using the omap i2c driver, which has been converted. I've fired off
a CI build now that just makes DM_I2C default y, lets see what still has
a warning then.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210325/f2a22bce/attachment.sig>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3] dm: i2c: Add a migration method for I2C
2021-03-25 22:45 ` Tom Rini
@ 2021-03-26 0:14 ` Tom Rini
2021-03-26 0:29 ` Simon Glass
0 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2021-03-26 0:14 UTC (permalink / raw)
To: u-boot
On Thu, Mar 25, 2021 at 06:45:35PM -0400, Tom Rini wrote:
> On Fri, Mar 26, 2021 at 08:41:42AM +1300, Simon Glass wrote:
> > Hi Tom,
> >
> > On Fri, 26 Mar 2021 at 08:30, Tom Rini <trini@konsulko.com> wrote:
> > >
> > > On Fri, Mar 26, 2021 at 08:11:30AM +1300, Simon Glass wrote:
> > > > Hi Tom,
> > > >
> > > > On Fri, 26 Mar 2021 at 08:05, Tom Rini <trini@konsulko.com> wrote:
> > > > >
> > > > > On Fri, Mar 26, 2021 at 06:48:26AM +1300, Simon Glass wrote:
> > > > > > Hi Tom,
> > > > > >
> > > > > > On Fri, 26 Mar 2021 at 04:59, Tom Rini <trini@konsulko.com> wrote:
> > > > > > >
> > > > > > > On Thu, Mar 25, 2021 at 01:39:28PM +1300, 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.
> > > > > > > >
> > > > > > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > > > > >
> > > > > > > What boards trigger this warning when done on top of say the
> > > > > > > WIP/remove-non-AHCI_LIBATA-drivers branch I've pushed to my github or
> > > > > > > WIP/make-DM_PCI-fatal which has more removals, but I need to cycle back
> > > > > > > to and finish removing even more boards I suspect.
> > > > > >
> > > > > > With us/WIP/make-DM_PCI-fatal it looks like 250.
> > > > >
> > > > > Ugh. Can you link me the CI run please? I'm curious about which.
> > > >
> > > > Sorry, I did it locally
> > > >
> > > > https://pastebin.com/Wq8vgtSx
> > >
> > > I'm having trouble with that, sorry. It looks like it's complaining
> > > about boards that with your series applied locally don't throw up a
> > > warning about I2C (but do for DM_ETH, which already has a soon
> > > deadline).
> >
> > Yes I was just going off the number of migration messages in the
> > output (using grep).
> >
> > >
> > > > > Then we can introduce this warning for v2021.04 (I'll grab it shortly)
> > > > > and set the deadline of v2022.04 (a year of being loud) and hopefully
> > > > > things are migrated / otherwise removed before v2024.04 and they get
> > > > > nuked like we're starting with now on v2019.xx deadlines.
> > > >
> > > > Do you mean 2022.04? My view has become that things that haven't been
> > > > done probably won't be, so we should save ourselves the trouble and
> > > > cost of maintaining the boards and just remove them now. For example,
> > > > the Kconfig migration would be in much better shape (although I
> > > > haven't analysed how much better).
> > > >
> > > > Note I sent a series to clean up the warnings, plus add I2C and GPIO,
> > > > so you should look at that instead of this patch.
> > >
> > > Well, lets get some numbers on what boards throw this I2C warning first.
> > > I did a quick merge of this series and pushed WIP/add-DM_I2C-warning
> > > right now and I'm doing the before/after build now.
> >
> > OK.
>
> So, the list of DM_I2C violators is:
> am335x_guardian am335x_shc am335x_shc_ict am335x_shc_netboot
> am335x_shc_sdboot cm_t335 cm_t43 chiliboard am335x_igep003x draco etamin
> rastaban thuban pxm2 rut am335x_sl50 am335x_baltos igep00x0 omap3_beagle
> omap3_evm devkit8000 omap4_panda omap4_sdp4430 omap5_uevm all of which
> are using the omap i2c driver, which has been converted. I've fired off
> a CI build now that just makes DM_I2C default y, lets see what still has
> a warning then.
This brings us to https://source.denx.de/u-boot/u-boot/-/jobs/244066
which shows sunxi throws an error...but I'll assume that's fixed in the
video update that's basically pending already. Then a handful of needed
migrations. I think a series that enables DM_I2C by default, disables
it on the boards it fails on and cc's the board maintainers to get them
to look (as I'm sure there's other migrations missing) would probably
help make sure this is all taken care of before a v2022.04 deadline.
And I think v2022.04 is still right because the places this crops in are
boards with other, sooner, migration deadlines. There's no missing
driver migrations as best I can see. So if we say "you need to migrate
this thing you've had 3 years notice on, and also please take of these
other low-hanging quick migrations while you're here and testing on the
hardware" is going to be better received I think than "and we also just
added another super soon deadline too". And with enforcing some big
migrations just around the corner there'll be plenty of other "now we
can clean up and nuke the non-DM code that's not used for SPL/TPL" and
so on.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210325/7a26ba64/attachment.sig>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3] dm: i2c: Add a migration method for I2C
2021-03-26 0:14 ` Tom Rini
@ 2021-03-26 0:29 ` Simon Glass
0 siblings, 0 replies; 11+ messages in thread
From: Simon Glass @ 2021-03-26 0:29 UTC (permalink / raw)
To: u-boot
Hi Tom,
On Fri, 26 Mar 2021 at 13:14, Tom Rini <trini@konsulko.com> wrote:
>
> On Thu, Mar 25, 2021 at 06:45:35PM -0400, Tom Rini wrote:
> > On Fri, Mar 26, 2021 at 08:41:42AM +1300, Simon Glass wrote:
> > > Hi Tom,
> > >
> > > On Fri, 26 Mar 2021 at 08:30, Tom Rini <trini@konsulko.com> wrote:
> > > >
> > > > On Fri, Mar 26, 2021 at 08:11:30AM +1300, Simon Glass wrote:
> > > > > Hi Tom,
> > > > >
> > > > > On Fri, 26 Mar 2021 at 08:05, Tom Rini <trini@konsulko.com> wrote:
> > > > > >
> > > > > > On Fri, Mar 26, 2021 at 06:48:26AM +1300, Simon Glass wrote:
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > On Fri, 26 Mar 2021 at 04:59, Tom Rini <trini@konsulko.com> wrote:
> > > > > > > >
> > > > > > > > On Thu, Mar 25, 2021 at 01:39:28PM +1300, 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.
> > > > > > > > >
> > > > > > > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > > > > > >
> > > > > > > > What boards trigger this warning when done on top of say the
> > > > > > > > WIP/remove-non-AHCI_LIBATA-drivers branch I've pushed to my github or
> > > > > > > > WIP/make-DM_PCI-fatal which has more removals, but I need to cycle back
> > > > > > > > to and finish removing even more boards I suspect.
> > > > > > >
> > > > > > > With us/WIP/make-DM_PCI-fatal it looks like 250.
> > > > > >
> > > > > > Ugh. Can you link me the CI run please? I'm curious about which.
> > > > >
> > > > > Sorry, I did it locally
> > > > >
> > > > > https://pastebin.com/Wq8vgtSx
> > > >
> > > > I'm having trouble with that, sorry. It looks like it's complaining
> > > > about boards that with your series applied locally don't throw up a
> > > > warning about I2C (but do for DM_ETH, which already has a soon
> > > > deadline).
> > >
> > > Yes I was just going off the number of migration messages in the
> > > output (using grep).
> > >
> > > >
> > > > > > Then we can introduce this warning for v2021.04 (I'll grab it shortly)
> > > > > > and set the deadline of v2022.04 (a year of being loud) and hopefully
> > > > > > things are migrated / otherwise removed before v2024.04 and they get
> > > > > > nuked like we're starting with now on v2019.xx deadlines.
> > > > >
> > > > > Do you mean 2022.04? My view has become that things that haven't been
> > > > > done probably won't be, so we should save ourselves the trouble and
> > > > > cost of maintaining the boards and just remove them now. For example,
> > > > > the Kconfig migration would be in much better shape (although I
> > > > > haven't analysed how much better).
> > > > >
> > > > > Note I sent a series to clean up the warnings, plus add I2C and GPIO,
> > > > > so you should look at that instead of this patch.
> > > >
> > > > Well, lets get some numbers on what boards throw this I2C warning first.
> > > > I did a quick merge of this series and pushed WIP/add-DM_I2C-warning
> > > > right now and I'm doing the before/after build now.
> > >
> > > OK.
> >
> > So, the list of DM_I2C violators is:
> > am335x_guardian am335x_shc am335x_shc_ict am335x_shc_netboot
> > am335x_shc_sdboot cm_t335 cm_t43 chiliboard am335x_igep003x draco etamin
> > rastaban thuban pxm2 rut am335x_sl50 am335x_baltos igep00x0 omap3_beagle
> > omap3_evm devkit8000 omap4_panda omap4_sdp4430 omap5_uevm all of which
> > are using the omap i2c driver, which has been converted. I've fired off
> > a CI build now that just makes DM_I2C default y, lets see what still has
> > a warning then.
>
> This brings us to https://source.denx.de/u-boot/u-boot/-/jobs/244066
> which shows sunxi throws an error...but I'll assume that's fixed in the
> video update that's basically pending already. Then a handful of needed
> migrations. I think a series that enables DM_I2C by default, disables
> it on the boards it fails on and cc's the board maintainers to get them
> to look (as I'm sure there's other migrations missing) would probably
> help make sure this is all taken care of before a v2022.04 deadline.
>
> And I think v2022.04 is still right because the places this crops in are
> boards with other, sooner, migration deadlines. There's no missing
> driver migrations as best I can see. So if we say "you need to migrate
> this thing you've had 3 years notice on, and also please take of these
> other low-hanging quick migrations while you're here and testing on the
> hardware" is going to be better received I think than "and we also just
> added another super soon deadline too". And with enforcing some big
> migrations just around the corner there'll be plenty of other "now we
> can clean up and nuke the non-DM code that's not used for SPL/TPL" and
> so on.
OK...will take a look.
Regards,
Simon
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2021-03-26 0:29 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-25 0:39 [PATCH v3] dm: i2c: Add a migration method for I2C Simon Glass
2021-03-25 0:52 ` Pali Rohár
2021-03-25 15:59 ` Tom Rini
2021-03-25 17:48 ` Simon Glass
2021-03-25 19:05 ` Tom Rini
2021-03-25 19:11 ` Simon Glass
2021-03-25 19:30 ` Tom Rini
2021-03-25 19:41 ` Simon Glass
2021-03-25 22:45 ` Tom Rini
2021-03-26 0:14 ` Tom Rini
2021-03-26 0:29 ` Simon Glass
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox