[PATCH] mtd: spi-nor: Fix 3-or-4 address byte mode logic

Tudor.Ambarus at microchip.com Tudor.Ambarus at microchip.com
Tue Oct 6 07:03:17 EDT 2020


On 10/1/20 9:34 AM, Pratyush Yadav wrote:
> So using an address width of 4 here is not necessarily the right thing
> to do. This change would break SMPT parsing for all flashes that use
> 3-byte addressing by default because SMPT parsing can involve register
> reads/writes. One such device is the Cypress S28HS flash. In fact, this
> was what prompted me to write the patch [0].

Do you refer to spi_nor_get_map_in_use()? addr width, dummy and opcode
are discovered when reading sfdp, we should be fine. If READ SFDP
requirements have changed for octal ddr, then we'll have to handle that
separately.

Cheers,
ta 


More information about the linux-mtd mailing list