Skip to contentSkip to conversation

mtd: atmel_nand: increase chip_delay

PATCH In review Raphael Poggi 3 participants 3 messages Jul 29, 2014 – Aug 4, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: atmel_nand: increase chip_delay

Some nand with 8k page size like Micron MT29F32G08ABAAAWP need more than 20us.

---
 drivers/mtd/nand/atmel_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/atmel_nand.c +1 -1
index e321c56..77bd877 100644
@@ -2099,7 +2099,7 @@ static int atmel_nand_probe(struct platform_device *pdev)
 	}
 
 	nand_chip->ecc.mode = host->board.ecc_mode;
-	nand_chip->chip_delay = 20;		/* 20us command delay time */
+	nand_chip->chip_delay = 40;		/* 40us command delay time */
 
 	if (host->board.bus_width_16)	/* 16-bit bus width */
 		nand_chip->options |= NAND_BUSWIDTH_16;
Signature · 1 line
1.7.9.5
#1 lore raw

Hi, Raphael

Quoted 12 lines · Raphael Poggi

Some nand with 8k page size like Micron MT29F32G08ABAAAWP need more than 20us.

---
  drivers/mtd/nand/atmel_nand.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/atmel_nand.c +0 -0
index e321c56..77bd877 100644

drivers/mtd/nand/atmel_nand.c static int atmel_nand_probe(struct platform_device *pdev) · line 2105

Quoted 8 lines
drivers/mtd/nand/atmel_nand.c +1 -1
@@ -2099,7 +2099,7 @@ static int atmel_nand_probe(struct platform_device *pdev)
  	}
 
  	nand_chip->ecc.mode = host->board.ecc_mode;
-	nand_chip->chip_delay = 20;		/* 20us command delay time */
+	nand_chip->chip_delay = 40;		/* 40us command delay time */
 
  	if (host->board.bus_width_16)	/* 16-bit bus width */
  		nand_chip->options |= NAND_BUSWIDTH_16;

I just post a patch [1] days ago which does almost the same thing to support 4k-page nand flash. personally I am fine with your patch.

Brain, you only need to take care this patch. And drop my patch [1].

[1] http://patchwork.ozlabs.org/patch/372406/

Thanks.
Best Regards,
Josh Wu

#2 lore raw
Quoted 24 lines · Josh Wu
Quoted 12 lines · Raphael Poggi

Some nand with 8k page size like Micron MT29F32G08ABAAAWP need more than 20us.

---
 drivers/mtd/nand/atmel_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/atmel_nand.c +0 -0
index e321c56..77bd877 100644

drivers/mtd/nand/atmel_nand.c static int atmel_nand_probe(struct platform_device *pdev) · line 2103

Quoted 6 lines
drivers/mtd/nand/atmel_nand.c +1 -1
@@ -2099,7 +2099,7 @@ static int atmel_nand_probe(struct platform_device *pdev)
 	}
 	nand_chip->ecc.mode = host->board.ecc_mode;
-	nand_chip->chip_delay = 20;		/* 20us command delay time */
+	nand_chip->chip_delay = 40;		/* 40us command delay time */
 	if (host->board.bus_width_16)	/* 16-bit bus width */
 		nand_chip->options |= NAND_BUSWIDTH_16;

I just post a patch [1] days ago which does almost the same thing to support 4k-page nand flash.
personally I am fine with your patch.

Quoted 3 lines

Brain, you only need to take care this patch. And drop my patch [1].

[1] http://patchwork.ozlabs.org/patch/372406/

OK, queued to l2-mtd.git/next. Thanks!

Brian