Skip to content

Commit 552c938

Browse files
committed
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: Miquel Raynal <[email protected]>
2 parents 964b899 + 6819db9 commit 552c938

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

drivers/mtd/nand/raw/davinci_nand.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,11 @@ static int davinci_nand_exec_instr(struct davinci_nand_info *info,
671671
break;
672672
}
673673

674-
if (instr->delay_ns)
674+
if (instr->delay_ns) {
675+
/* Dummy read to be sure that command is sent before ndelay starts */
676+
davinci_nand_readl(info, 0);
675677
ndelay(instr->delay_ns);
678+
}
676679

677680
return 0;
678681
}

drivers/mtd/nand/raw/nand_hynix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static int hynix_nand_rr_init(struct nand_chip *chip)
401401
if (ret)
402402
pr_warn("failed to initialize read-retry infrastructure");
403403

404-
return 0;
404+
return ret;
405405
}
406406

407407
static void hynix_nand_extract_oobsize(struct nand_chip *chip,

0 commit comments

Comments
 (0)