[PATCH 1/2] mtd: spi-nor: spansion: Replace hardcoded values for addr_nbytes/addr_mode_nbytes

Tudor.Ambarus at microchip.com Tudor.Ambarus at microchip.com
Wed Jul 27 21:27:23 PDT 2022


Hi, Takahiro,

On 7/28/22 07:14, Tudor Ambarus wrote:
> We track in the core the internal address mode of the flash. Stop using
> hardcoded values for the number of bytes of address and use
> nor->addr_nbytes and nor->params->addr_mode_nbytes instead.
> 
> Signed-off-by: Tudor Ambarus <tudor.ambarus at microchip.com>
> ---
>  drivers/mtd/spi-nor/spansion.c | 16 +++++++++++-----
>  1 file changed, 11 insertions(+), 5 deletions(-)

Would you please test this patch. You'll need an s25hx
and an s28hs512t flash. Thanks!


More information about the linux-mtd mailing list