[PATCH 2/2] mtd: OneNAND: Support runtime badblock check of Samsung Soc OneNAND
Joonyoung Shim
jy0922.shim at samsung.com
Tue Jun 1 04:17:36 EDT 2010
From: Kyungmin Park <kyungmin.park at samsung.com>
This patch is to support runtime badblock check to Samsung Soc OneNAND
driver.
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
---
drivers/mtd/onenand/samsung.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
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);
--
1.7.0.4
More information about the linux-mtd
mailing list