Commit 552c9380 authored by Miquel Raynal's avatar Miquel Raynal

Merge tag 'nand/for-6.10' into mtd/next

Raw NAND:

Two small fixes, one in the Hynix vendor code for properly returning an
error which might have been ignored and another in the Davinci driver to
properly synchronize the controller with the gpio domain.
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parents 964b8998 6819db94
...@@ -671,8 +671,11 @@ static int davinci_nand_exec_instr(struct davinci_nand_info *info, ...@@ -671,8 +671,11 @@ static int davinci_nand_exec_instr(struct davinci_nand_info *info,
break; break;
} }
if (instr->delay_ns) if (instr->delay_ns) {
/* Dummy read to be sure that command is sent before ndelay starts */
davinci_nand_readl(info, 0);
ndelay(instr->delay_ns); ndelay(instr->delay_ns);
}
return 0; return 0;
} }
......
...@@ -401,7 +401,7 @@ static int hynix_nand_rr_init(struct nand_chip *chip) ...@@ -401,7 +401,7 @@ static int hynix_nand_rr_init(struct nand_chip *chip)
if (ret) if (ret)
pr_warn("failed to initialize read-retry infrastructure"); pr_warn("failed to initialize read-retry infrastructure");
return 0; return ret;
} }
static void hynix_nand_extract_oobsize(struct nand_chip *chip, static void hynix_nand_extract_oobsize(struct nand_chip *chip,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment