461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch 565 B

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