aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKyungmin Park <kyungmin.park@samsung.com>2010-12-05 19:05:18 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2011-01-06 10:16:39 -0500
commitd983c54ebd875f5f6fd37c154195c1c456a7af70 (patch)
treef819b5d61328e35664262d6aced043d0c4a0609e /drivers
parentbeda1d49941765c0765e0f3cb95b4a86de67745d (diff)
mtd: OneNAND: Fix multi block erase support at 4KiB pagesize
Original 4KiB pagesize chip (SLC) doesn't support Multi block erase at Spec. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/onenand/onenand_base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index c38bf9c54a11..88f23e3f3014 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -2492,7 +2492,8 @@ static int onenand_erase(struct mtd_info *mtd, struct erase_info *instr)
2492 /* Grab the lock and see if the device is available */ 2492 /* Grab the lock and see if the device is available */
2493 onenand_get_device(mtd, FL_ERASING); 2493 onenand_get_device(mtd, FL_ERASING);
2494 2494
2495 if (region || instr->len < MB_ERASE_MIN_BLK_COUNT * block_size) { 2495 if (ONENAND_IS_4KB_PAGE(this) || region ||
2496 instr->len < MB_ERASE_MIN_BLK_COUNT * block_size) {
2496 /* region is set for Flex-OneNAND (no mb erase) */ 2497 /* region is set for Flex-OneNAND (no mb erase) */
2497 ret = onenand_block_by_block_erase(mtd, instr, 2498 ret = onenand_block_by_block_erase(mtd, instr,
2498 region, block_size); 2499 region, block_size);