[PATCH] mtd: spi-nor: micron-st: Add support for mt25qu01g

Michael Walle michael at walle.cc
Tue Oct 24 09:36:52 PDT 2023


Am 2023-10-24 18:20, schrieb Fabio Estevam:
> On Tue, Oct 24, 2023 at 12:53 PM Tudor Ambarus 
> <tudor.ambarus at linaro.org> wrote:
> 
>> drivers/mtd/spi-nor/sfdp.c, search for n_dice. spi_nor_parse_sccr_mc()
> 
> On my tests, spi_nor_parse_sccr_mc() never gets called.
> 
> In the 'switch (SFDP_PARAM_HEADER_ID(param_header))' the following
> case is reached.
> 
> case SFDP_4BAIT_ID:
> err = spi_nor_parse_4bait(nor, param_header);
> break;
> 
> so spi_nor_parse_sccr_mc() does not run.
> 
> What should be done to get spi_nor_parse_sccr_mc() called?

Mhh, that's a pity. It seems that your SFDP in the flash doesn't
contain that table. I haven't confirmed it by looking at your dump
as I'm about to go on vacation tomorrow and packing right now.

What do we do in that case, Tudor? I presume a fixup which sets n_dice
(any maybe others) to the correct value?

-michael



More information about the linux-mtd mailing list