[PATCH v17 3/7] mtd: spi-nor: Do not change nor->addr_nbytes at SFDP parsing time

Pratyush Yadav p.yadav at ti.com
Tue Jul 26 02:24:50 PDT 2022


On 25/07/22 12:25PM, Tudor Ambarus wrote:
> At the SFDP parsing time we should not change members of struct spi_nor,
> but instead fill members of struct spi_nor_flash_parameters which could
> later on be used by callers. The caller will then decide if SFDP params
> should be used and more importantly when they should be used. Clean the
> code flow and don't initialize nor->addr_nbytes at SFDP parsing time.
> 
> Signed-off-by: Tudor Ambarus <tudor.ambarus at microchip.com>
> Tested-by: Takahiro Kuwano <Takahiro.Kuwano at infineon.com>
> Reviewed-by: Michael Walle <michael at walle.cc>

Reviewed-by: Pratyush Yadav <p.yadav at ti.com>

-- 
Regards,
Pratyush Yadav
Texas Instruments Inc.



More information about the linux-mtd mailing list