475-mtd_cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch 556 B

123456789101112131415161718
  1. From: George Kashperko <george@znau.edu.ua>
  2. Issue map read after Write Buffer Load command to ensure chip is ready
  3. to receive data.
  4. Signed-off-by: George Kashperko <george@znau.edu.ua>
  5. ---
  6. drivers/mtd/chips/cfi_cmdset_0002.c | 1 +
  7. 1 file changed, 1 insertion(+)
  8. --- a/drivers/mtd/chips/cfi_cmdset_0002.c
  9. +++ b/drivers/mtd/chips/cfi_cmdset_0002.c
  10. @@ -1409,6 +1409,7 @@ static int __xipram do_write_buffer(stru
  11. /* Write Buffer Load */
  12. map_write(map, CMD(0x25), cmd_adr);
  13. + (void) map_read(map, cmd_adr);
  14. chip->state = FL_WRITING_TO_BUFFER;