303-core-0005-nand-raw-workaround-for-EDO-high-speed-mode.patch 849 B

12345678910111213141516171819202122232425
  1. From e2c1ef18cddb426b9eea79599aec892717bead48 Mon Sep 17 00:00:00 2001
  2. From: Han Xu <[email protected]>
  3. Date: Thu, 15 Aug 2019 21:45:50 -0500
  4. Subject: [PATCH] nand: raw: workaround for EDO high speed mode
  5. Found issue for EDO high speed mode, set to low speed mode as a
  6. workaround.
  7. Signed-off-by: Han Xu <[email protected]>
  8. ---
  9. drivers/mtd/nand/raw/nand_base.c | 3 ++-
  10. 1 file changed, 2 insertions(+), 1 deletion(-)
  11. --- a/drivers/mtd/nand/raw/nand_base.c
  12. +++ b/drivers/mtd/nand/raw/nand_base.c
  13. @@ -940,7 +940,8 @@ static int nand_init_data_interface(stru
  14. modes = GENMASK(chip->onfi_timing_mode_default, 0);
  15. }
  16. - for (mode = fls(modes) - 1; mode >= 0; mode--) {
  17. + /* for (mode = fls(modes) - 1; mode >= 0; mode--) { */
  18. + for (mode = 1; mode >= 0; mode--) {
  19. ret = onfi_fill_data_interface(chip, NAND_SDR_IFACE, mode);
  20. if (ret)
  21. continue;