[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
Thu Jul 28 22:32:16 PDT 2022
On 7/29/22 05:35, Takahiro Kuwano wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> 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>
Thank you, Takahiro!
--
Cheers,
ta
More information about the linux-mtd
mailing list