Discover current address mode by CRC
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mtd: spi-nor: core: Add a helper to read with alternative methoddrivers/ drivers/ | +50 | 0 replies | |
| 2/2 | mtd: spi-nor: spansion: Discover current address mode by CRCdrivers/ drivers/ | +131 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] Discover current address mode by CRC
From: Takahiro Kuwano <[email protected]>
Hello,
I introduced this series based on the discussion [0].
Patch#1 is needed to use READ_4B(13h) for offline CRC calculation. This can replace spi_nor_read_raw() in SFDP, if it is OK.
Path#2 implements address mode discovery by:
- determine factory default from BFPT DWORD16
- read 4 bytes from address 0 by 13h opcode
- calculate CRC from 4 byte data by offline
- perform data integrity CRC op
- read data integrity CRC register by Read Any Reg with 3- and/or 4-byte address bytes to determine the current address mode
Takahiro Kuwano (2):
mtd: spi-nor: core: Add a helper to read with alternative method
mtd: spi-nor: spansion: Discover current address mode by CRC
drivers/mtd/spi-nor/core.c | 48 ++++++++++++ drivers/mtd/spi-nor/core.h | 2 + drivers/mtd/spi-nor/sfdp.h | 1 + drivers/mtd/spi-nor/spansion.c | 130 +++++++++++++++++++++++++++++++++ 4 files changed, 181 insertions(+)
Signature · 6 lines
2.25.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/