Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242770
b: refs/heads/master
c: b3dcfd3
h: refs/heads/master
v: v3
  • Loading branch information
Roman Tereshonkov authored and David Woodhouse committed Mar 11, 2011
1 parent 36cacbd commit 464895e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dcfb81d61da1367e52f7f7e3ceff0d0044c3c7ee
refs/heads/master: b3dcfd35244e1cb8dc8dfa5c05013b133dbb437a
3 changes: 2 additions & 1 deletion trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mtd/onenand.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ struct onenand_chip {
#define ONENAND_SKIP_UNLOCK_CHECK (0x0100)
#define ONENAND_PAGEBUF_ALLOC (0x1000)
#define ONENAND_OOBBUF_ALLOC (0x2000)
#define ONENAND_SKIP_INITIAL_UNLOCKING (0x4000)

#define ONENAND_IS_4KB_PAGE(this) \
(this->options & ONENAND_HAS_4KB_PAGE)
Expand Down

0 comments on commit 464895e

Please sign in to comment.