b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 | |
| 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 | @@ -2047,6 +2047,7 @@ static int __xipram do_write_buffer(stru |
| 11 | |
| 12 | /* Write Buffer Load */ |
| 13 | map_write(map, CMD(0x25), cmd_adr); |
| 14 | + (void) map_read(map, cmd_adr); |
| 15 | |
| 16 | chip->state = FL_WRITING_TO_BUFFER; |
| 17 | |