kernel: bump 5.4 to 5.4.109
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.4 / 303-core-0005-nand-raw-workaround-for-EDO-high-speed-mode.patch
1 From e2c1ef18cddb426b9eea79599aec892717bead48 Mon Sep 17 00:00:00 2001
2 From: Han Xu <han.xu@nxp.com>
3 Date: Thu, 15 Aug 2019 21:45:50 -0500
4 Subject: [PATCH] nand: raw: workaround for EDO high speed mode
5
6 Found issue for EDO high speed mode, set to low speed mode as a
7 workaround.
8
9 Signed-off-by: Han Xu <han.xu@nxp.com>
10 ---
11 drivers/mtd/nand/raw/nand_base.c | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
13
14 --- a/drivers/mtd/nand/raw/nand_base.c
15 +++ b/drivers/mtd/nand/raw/nand_base.c
16 @@ -940,7 +940,8 @@ static int nand_init_data_interface(stru
17 modes = GENMASK(chip->onfi_timing_mode_default, 0);
18 }
19
20 - for (mode = fls(modes) - 1; mode >= 0; mode--) {
21 + /* for (mode = fls(modes) - 1; mode >= 0; mode--) { */
22 + for (mode = 1; mode >= 0; mode--) {
23 ret = onfi_fill_data_interface(chip, NAND_SDR_IFACE, mode);
24 if (ret)
25 continue;