Skip to contentSkip to conversation

non-DM SPI_FLASH removal?

DISCUSSION Marek Behun 2 participants 5 messages Jul 12, 2021

lore
Share & tools
lore
#0 lore raw

Tom,

there are 16 boards left with CONFIG_SPI_FLASH
(git grep CONFIG_SPI_FLASH=y)
and Makefile says this was supposed to be deprecated in v2019.07.

Are we going to remove them so that we can simplify the SPI subsystem?

Marek

#1 lore raw
Quoted 7 lines · Marek Behun

Tom,

there are 16 boards left with CONFIG_SPI_FLASH
(git grep CONFIG_SPI_FLASH=y)
and Makefile says this was supposed to be deprecated in v2019.07.

Are we going to remove them so that we can simplify the SPI subsystem?

The warning is on CONFIG_SPI_FLASH without CONFIG_DM_SPI_FLASH and of course outside of SPL. When I asked Jagan about this off-list last month or so, he said everything had been migrated, and I couldn't make any boards fail by making the migration warning in the makefile be an error. I think that means that if you have SPI subsystem cleanups you want to do / post, please do so, thanks!

Signature · 1 line
Tom
#2 lore raw
Quoted 8 lines · On Mon, 12 Jul 2021 10:10:14 -0400 Tom Rini <[email protected]> wrote:
Quoted 6 lines · Marek Behun

Tom,

there are 16 boards left with CONFIG_SPI_FLASH
(git grep CONFIG_SPI_FLASH=y)
and Makefile says this was supposed to be deprecated in v2019.07.

Quoted 9 lines
Quoted 1 line

Are we going to remove them so that we can simplify the SPI subsystem?

The warning is on CONFIG_SPI_FLASH without CONFIG_DM_SPI_FLASH and of course outside of SPL. When I asked Jagan about this off-list last month or so, he said everything had been migrated, and I couldn't make any boards fail by making the migration warning in the makefile be an error. I think that means that if you have SPI subsystem cleanups you want to do / post, please do so, thanks!

None of the boards from
git grep CONFIG_SPI_FLASH=y
have CONFIG_DM_SPI_FLASH defined. These boards are not migrated.

Marek

#3 lore raw
Quoted 21 lines · Marek Behun
Quoted 8 lines · On Mon, 12 Jul 2021 10:10:14 -0400 Tom Rini <[email protected]> wrote:
Quoted 6 lines · Marek Behun

Tom,

there are 16 boards left with CONFIG_SPI_FLASH
(git grep CONFIG_SPI_FLASH=y)
and Makefile says this was supposed to be deprecated in v2019.07.

Quoted 9 lines
Quoted 1 line

Are we going to remove them so that we can simplify the SPI subsystem?

The warning is on CONFIG_SPI_FLASH without CONFIG_DM_SPI_FLASH and of course outside of SPL. When I asked Jagan about this off-list last month or so, he said everything had been migrated, and I couldn't make any boards fail by making the migration warning in the makefile be an error. I think that means that if you have SPI subsystem cleanups you want to do / post, please do so, thanks!

Quoted 3 lines

None of the boards from
git grep CONFIG_SPI_FLASH=y
have CONFIG_DM_SPI_FLASH defined. These boards are not migrated.

Well, hunh. I guess I messed up my "find all of the boards that need removing, for DM_SPI_FLASH" test. I see that warning popping up when I build it locally, right now. Time to fire off a removal series then, thanks for bringing this up!

Signature · 1 line
Tom
#4 lore raw
In reply to Marek Behun
Quoted 9 lines · On Mon, 12 Jul 2021 16:01:13 +0200 Marek Behun <[email protected]> wrote:

Tom,

there are 16 boards left with CONFIG_SPI_FLASH
(git grep CONFIG_SPI_FLASH=y)
and Makefile says this was supposed to be deprecated in v2019.07.

Are we going to remove them so that we can simplify the SPI subsystem?

Marek

Alternatively it seems all those boards have devicetrees, and at91-vinco even has "jedec,spi-nor" compatible device defined.

The m68k devices don't have SPI-NOR device under their spi controller in device-tree, though.