[PATCH v3 2/5] mtd: spi-nor: micron-st: move set_octal_dtr to late_init()
Tudor Ambarus
tudor.ambarus at linaro.org
Wed Nov 12 01:01:53 PST 2025
On 11/12/25 8:48 AM, Haibo Chen wrote:
> Move params->set_octal_dtr from flash_info->fixups->default_init()
> to spi_nor_manufacturer-> fixups-> late_init(), this can cover
> all Micorn and ST chips without repeat in each chip's flash_info.
>
> With this, we can also remove flash_info->size if chip has SFDP.
you could remove flash_info->size when chip has SFDP even before
your patch, as params->size is first initialized with
flash_info->size and then overwritten with the flash size read
from SFDP.
So this comment is misleading and has to be dropped. With that:
Reviewed-by: Tudor Ambarus <tudor.ambarus at linaro.org>
More information about the linux-mtd
mailing list