Message ID | 1398403895-5176-1-git-send-email-ron@debian.org |
---|---|
State | Accepted |
Commit | 4007e2d175cc83ea728b757e49155826b32fbff8 |
Headers | show |
On Fri, Apr 25, 2014 at 03:01:35PM +0930, Ron wrote:
> Signed-off-by: Ron Lee <ron@debian.org>
Pushed to l2-mtd.git. Thanks!
BTW, can you fix your git config so that it uses your full name? You
have the sign-off right, but git-send-email is still just picking your
name up as "Ron."
Brian
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 9d01c4d..7f5b814 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -4023,8 +4023,16 @@ int nand_scan_tail(struct mtd_info *mtd) chip->pagebuf = -1; /* Large page NAND with SOFT_ECC should support subpage reads */ - if ((ecc->mode == NAND_ECC_SOFT) && (chip->page_shift > 9)) - chip->options |= NAND_SUBPAGE_READ; + switch (ecc->mode) { + case NAND_ECC_SOFT: + case NAND_ECC_SOFT_BCH: + if (chip->page_shift > 9) + chip->options |= NAND_SUBPAGE_READ; + break; + + default: + break; + } /* Fill in remaining MTD driver data */ mtd->type = nand_is_slc(chip) ? MTD_NANDFLASH : MTD_MLCNANDFLASH;
Signed-off-by: Ron Lee <ron@debian.org> --- drivers/mtd/nand/nand_base.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-)