kernel: generic: Add kernel 4.14 support
[openwrt/openwrt.git] / target / linux / generic / pending-4.14 / 461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch
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 @@ -1832,6 +1832,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