kernel: add linux 4.4 support
[openwrt.git] / target / linux / generic / patches-4.4 / 461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch
1 From: George Kashperko <george@znau.edu.ua>
2
3 Issue map read after Write Buffer Load command to ensure chip is ready
4 to receive data.
5 Signed-off-by: George Kashperko <george@znau.edu.ua>
6 ---
7  drivers/mtd/chips/cfi_cmdset_0002.c |    1 +
8  1 file changed, 1 insertion(+)
9 --- a/drivers/mtd/chips/cfi_cmdset_0002.c
10 +++ b/drivers/mtd/chips/cfi_cmdset_0002.c
11 @@ -1830,6 +1830,7 @@ static int __xipram do_write_buffer(stru
12  
13         /* Write Buffer Load */
14         map_write(map, CMD(0x25), cmd_adr);
15 +       (void) map_read(map, cmd_adr);
16  
17         chip->state = FL_WRITING_TO_BUFFER;
18