Patchwork [2/2] mtd: OneNAND: Support runtime badblock check of Samsung Soc OneNAND

login
register
mail settings
Submitter Joonyoung Shim
Date June 1, 2010, 8:17 a.m.
Message ID <1275380256-15315-2-git-send-email-jy0922.shim@samsung.com>
Download mbox | patch
Permalink /patch/54153/
State New
Headers show

Comments

Joonyoung Shim - June 1, 2010, 8:17 a.m.
From: Kyungmin Park <kyungmin.park@samsung.com>

This patch is to support runtime badblock check to Samsung Soc OneNAND
driver.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/mtd/onenand/samsung.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c
index fa4b743..c2bbeae 100644
--- a/drivers/mtd/onenand/samsung.c
+++ b/drivers/mtd/onenand/samsung.c
@@ -837,8 +837,12 @@  static int s3c_onenand_probe(struct platform_device *pdev)
 	/* Set onenand_chip also */
 	this->base = onenand->base;
 
-	/* Use runtime badblock check */
+	/* Skip unlock all check */
 	this->options |= ONENAND_SKIP_UNLOCK_CHECK;
+#ifdef CONFIG_MTD_RUNTIME_BADBLOCK_CHECK
+	/* Use runtime badblock check */
+	this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
+#endif
 
 	if (onenand->type != TYPE_S5PC110) {
 		r = platform_get_resource(pdev, IORESOURCE_MEM, 1);