diff options
Diffstat (limited to 'target/linux/lantiq/patches-5.10/0018-MTD-nand-lots-of-xrx200-fixes.patch')
-rw-r--r-- | target/linux/lantiq/patches-5.10/0018-MTD-nand-lots-of-xrx200-fixes.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/lantiq/patches-5.10/0018-MTD-nand-lots-of-xrx200-fixes.patch b/target/linux/lantiq/patches-5.10/0018-MTD-nand-lots-of-xrx200-fixes.patch index d68466c368..d8393f352a 100644 --- a/target/linux/lantiq/patches-5.10/0018-MTD-nand-lots-of-xrx200-fixes.patch +++ b/target/linux/lantiq/patches-5.10/0018-MTD-nand-lots-of-xrx200-fixes.patch @@ -33,9 +33,9 @@ Signed-off-by: John Crispin <blogic@openwrt.org> +static __be32 req_mask = 0; + struct xway_nand_data { + struct nand_controller controller; struct nand_chip chip; - unsigned long csflags; -@@ -91,10 +109,22 @@ static void xway_select_chip(struct nand +@@ -92,10 +110,22 @@ static void xway_select_chip(struct nand case -1: ltq_ebu_w32_mask(NAND_CON_CE, 0, EBU_NAND_CON); ltq_ebu_w32_mask(NAND_CON_NANDM, 0, EBU_NAND_CON); @@ -58,7 +58,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org> ltq_ebu_w32_mask(0, NAND_CON_NANDM, EBU_NAND_CON); ltq_ebu_w32_mask(0, NAND_CON_CE, EBU_NAND_CON); break; -@@ -107,6 +137,11 @@ static void xway_cmd_ctrl(struct nand_ch +@@ -108,6 +138,11 @@ static void xway_cmd_ctrl(struct nand_ch { struct mtd_info *mtd = nand_to_mtd(chip); @@ -70,7 +70,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org> if (cmd == NAND_CMD_NONE) return; -@@ -117,6 +152,24 @@ static void xway_cmd_ctrl(struct nand_ch +@@ -118,6 +153,24 @@ static void xway_cmd_ctrl(struct nand_ch while ((ltq_ebu_r32(EBU_NAND_WAIT) & NAND_WAIT_WR_C) == 0) ; @@ -95,7 +95,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org> } static int xway_dev_ready(struct nand_chip *chip) -@@ -156,6 +209,7 @@ static int xway_nand_probe(struct platfo +@@ -171,6 +224,7 @@ static int xway_nand_probe(struct platfo int err; u32 cs; u32 cs_flag = 0; @@ -103,7 +103,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org> /* Allocate memory for the device structure (and zero it) */ data = devm_kzalloc(&pdev->dev, sizeof(struct xway_nand_data), -@@ -191,6 +245,15 @@ static int xway_nand_probe(struct platfo +@@ -207,6 +261,15 @@ static int xway_nand_probe(struct platfo if (!err && cs == 1) cs_flag = NAND_CON_IN_CS1 | NAND_CON_OUT_CS1; |