Skip to content

introduce SNOR_ID3()

Michael Walle linux-mtd lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mtd: spi-nor: introduce SNOR_ID3()drivers/mtd/spi-nor/core.c drivers/mtd/spi-nor/core.h+14 -211 replies
2/2mtd: spi-nor: winbond: use SNOR_ID3() for w25q512nwmdrivers/mtd/spi-nor/winbond.c+1 -26 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchTom FitzhenryPratyush Yadav
1/2T-b R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] introduce SNOR_ID3()

For support which rely solely on the SFDP data, all we need to know is its JEDEC ID. All further information should be fetched from SFDP. For this, introduce a SNOR_ID3() macro which should be used for all new flashes with SFDP.

The dropped information are page size, number of sectors and sector size. The number of sectors (together with sector size) is only used to calculate the total flash size. In case of SFDP, this is read from there. The sector size is also used to select a proper erase opcode. We can just keep that one zero and the selection algorithm will select the same erase opcode; that is the opcode for the largest erase size (which is btw rather odd..). The page size is also taken from SFDP. There is one exception: older SFDP tables. These doesn't contain this data. So if there will be flashes with that, we should assume some sane value.

Shaik, could you please re-test your w25q512nwm support with this patch. I read through the SFDP data and it should behave exactly the same as before.

Michael Walle (2):
mtd: spi-nor: introduce SNOR_ID3()
mtd: spi-nor: winbond: use SNOR_ID3() for w25q512nwm

 drivers/mtd/spi-nor/core.c    | 7 +++++--
 drivers/mtd/spi-nor/core.h    | 9 +++++++++
 drivers/mtd/spi-nor/winbond.c | 3 +--
 3 files changed, 15 insertions(+), 4 deletions(-)
Signature · 6 lines
2.30.2


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/