[PATCH v15 6/8] mtd: spi-nor: Retain nor->addr_width at 4BAIT parse

Michael Walle michael at walle.cc
Thu May 12 15:14:48 PDT 2022


Am 2022-05-10 00:10, schrieb tkuw584924 at gmail.com:
> From: Takahiro Kuwano <Takahiro.Kuwano at infineon.com>
> 
> In 4BAIT parse, keep nor->params->addr_width because it may be used as
> current address mode in SMPT parse later on.

Mh I'm not sure this is needed at all.

SFDP spec says
   Variable address length (the current setting of the address
   length mode defines the address length)

and
   When the length is defined as variable, the software or hardware
   controlling the memory is aware of the address length mode last
   set in the memory device and this same length of address.

We don't set any address mode until all the SFDP parsing is
over. Therefore we should always be in 3 byte mode, no?

-michael



More information about the linux-mtd mailing list