mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-28 21:46:02 -04:00
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>
This commit is contained in:
committed by
David Woodhouse
parent
dcfb81d61d
commit
b3dcfd3524
@@ -4085,7 +4085,8 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
|
||||
mtd->writebufsize = mtd->writesize;
|
||||
|
||||
/* Unlock whole block */
|
||||
this->unlock_all(mtd);
|
||||
if (!(this->options & ONENAND_SKIP_INITIAL_UNLOCKING))
|
||||
this->unlock_all(mtd);
|
||||
|
||||
ret = this->scan_bbt(mtd);
|
||||
if ((!FLEXONENAND(this)) || ret)
|
||||
|
||||
Reference in New Issue
Block a user