Skip to content

Commit 34a9567

Browse files
easybemiquelraynal
authored andcommitted
mtd: spinand: Add support for 5-byte IDs
E.g. ESMT chips will return an identification code with a length of 5 bytes. In order to prevent ambiguity, flash chips would actually need to return IDs that are up to 17 or more bytes long due to JEDEC's continuation scheme. I understand that if a manufacturer ID is located in bank N of JEDEC's database (there are currently 16 banks), N - 1 continuation codes (7Fh) need to be added to the identification code (comprising of manufacturer ID and device ID). However, most flash chip manufacturers don't seem to implement this (correctly). Signed-off-by: Ezra Buehler <[email protected]> Reviewed-by: Martin Kurbanov <[email protected]> Tested-by: Martin Kurbanov <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent c7f0f92 commit 34a9567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/mtd/spinand.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
struct spinand_op;
170170
struct spinand_device;
171171

172-
#define SPINAND_MAX_ID_LEN 4
172+
#define SPINAND_MAX_ID_LEN 5
173173
/*
174174
* For erase, write and read operation, we got the following timings :
175175
* tBERS (erase) 1ms to 4ms

0 commit comments

Comments
 (0)