diff options
author | Roman Tereshonkov <roman.tereshonkov@nokia.com> | 2011-02-17 06:44:41 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-03-11 09:22:47 -0500 |
commit | b3dcfd35244e1cb8dc8dfa5c05013b133dbb437a (patch) | |
tree | af506e79393ddb05a8c8cc1a4271453442955ab8 /drivers/mtd/onenand | |
parent | dcfb81d61da1367e52f7f7e3ceff0d0044c3c7ee (diff) |
mtd: onenand: add new option to control initial onenand unlocking
A new option ONENAND_SKIP_INITIAL_UNLOCKING is added. This allows
to disable initial onenand unlocking when the driver is initialized.
Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 4205b9423b89..56a8b2005bda 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c | |||
@@ -4085,7 +4085,8 @@ int onenand_scan(struct mtd_info *mtd, int maxchips) | |||
4085 | mtd->writebufsize = mtd->writesize; | 4085 | mtd->writebufsize = mtd->writesize; |
4086 | 4086 | ||
4087 | /* Unlock whole block */ | 4087 | /* Unlock whole block */ |
4088 | this->unlock_all(mtd); | 4088 | if (!(this->options & ONENAND_SKIP_INITIAL_UNLOCKING)) |
4089 | this->unlock_all(mtd); | ||
4089 | 4090 | ||
4090 | ret = this->scan_bbt(mtd); | 4091 | ret = this->scan_bbt(mtd); |
4091 | if ((!FLEXONENAND(this)) || ret) | 4092 | if ((!FLEXONENAND(this)) || ret) |