Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231698
b: refs/heads/master
c: d983c54
h: refs/heads/master
v: v3
  • Loading branch information
Kyungmin Park authored and David Woodhouse committed Jan 6, 2011
1 parent 1ef313b commit cb6cb48
Show file tree
Hide file tree
Showing 2 changed files with 3 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: beda1d49941765c0765e0f3cb95b4a86de67745d
refs/heads/master: d983c54ebd875f5f6fd37c154195c1c456a7af70
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 @@ -2492,7 +2492,8 @@ static int onenand_erase(struct mtd_info *mtd, struct erase_info *instr)
/* Grab the lock and see if the device is available */
onenand_get_device(mtd, FL_ERASING);

if (region || instr->len < MB_ERASE_MIN_BLK_COUNT * block_size) {
if (ONENAND_IS_4KB_PAGE(this) || region ||
instr->len < MB_ERASE_MIN_BLK_COUNT * block_size) {
/* region is set for Flex-OneNAND (no mb erase) */
ret = onenand_block_by_block_erase(mtd, instr,
region, block_size);
Expand Down

0 comments on commit cb6cb48

Please sign in to comment.