[PATCH] mtd: nand: increase tWB to 200ns

Baruch Siach baruch at tkos.co.il
Thu Feb 12 03:06:22 PST 2015


ONFI spec (version 4.0, §4.18.1) sets tWB to max 200ns for SDR mode 0.

Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
 drivers/mtd/nand/nand_base.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 31e252a5ce9c..ebb7749247d5 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -662,7 +662,7 @@ static void nand_command(struct mtd_info *mtd, unsigned int command,
 	 * Apply this short delay always to ensure that we do wait tWB in
 	 * any case on any machine.
 	 */
-	ndelay(100);
+	ndelay(200);
 
 	nand_wait_ready(mtd);
 }
@@ -774,7 +774,7 @@ static void nand_command_lp(struct mtd_info *mtd, unsigned int command,
 	 * Apply this short delay always to ensure that we do wait tWB in
 	 * any case on any machine.
 	 */
-	ndelay(100);
+	ndelay(200);
 
 	nand_wait_ready(mtd);
 }
@@ -883,7 +883,7 @@ static int nand_wait(struct mtd_info *mtd, struct nand_chip *chip)
 	 * Apply this short delay always to ensure that we do wait tWB in any
 	 * case on any machine.
 	 */
-	ndelay(100);
+	ndelay(200);
 
 	chip->cmdfunc(mtd, NAND_CMD_STATUS, -1, -1);
 
-- 
2.1.4




More information about the linux-mtd mailing list