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

Takahiro Kuwano tkuw584924 at gmail.com
Thu Jul 28 19:35:30 PDT 2022


On 7/28/2022 1:27 PM, Tudor.Ambarus at microchip.com wrote:
> 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!

Both s25 and s28 works fine!

Tested-by: Takahiro Kuwano <Takahiro.Kuwano at infineon.com>



More information about the linux-mtd mailing list