981-mtd-spinand-Add-support-for-5-byte-IDs.patch 1.0 KB

123456789101112131415161718192021222324252627
  1. From: Ezra Buehler <[email protected]>
  2. E.g. ESMT chips will return an identification code with a length of 5
  3. bytes. In order to prevent ambiguity, flash chips would actually need to
  4. return IDs that are up to 17 or more bytes long due to JEDEC's
  5. continuation scheme. I understand that if a manufacturer ID is located
  6. in bank N of JEDEC's database (there are currently 16 banks), N - 1
  7. continuation codes (7Fh) need to be added to the identification code
  8. (comprising of manufacturer ID and device ID). However, most flash chip
  9. manufacturers don't seem to implement this (correctly).
  10. Signed-off-by: Ezra Buehler <[email protected]>
  11. ---
  12. include/linux/mtd/spinand.h | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. --- a/include/linux/mtd/spinand.h
  15. +++ b/include/linux/mtd/spinand.h
  16. @@ -169,7 +169,7 @@
  17. struct spinand_op;
  18. struct spinand_device;
  19. -#define SPINAND_MAX_ID_LEN 4
  20. +#define SPINAND_MAX_ID_LEN 5
  21. /*
  22. * For erase, write and read operation, we got the following timings :
  23. * tBERS (erase) 1ms to 4ms