lkml.org 
[lkml]   [2008]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/2] [MTD] Blackfin NFC Driver: fix bug - do not clobber the status from the first 256 bytes if operating on 512 pages
    Date
    From: Mike Frysinger <vapier.adi@gmail.com>

    Singed-off-by: Mike Frysinger <vapier.adi@gmail.com>
    Signed-off-by: Bryan Wu <cooloney@kernel.org>
    ---
    drivers/mtd/nand/bf5xx_nand.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/mtd/nand/bf5xx_nand.c b/drivers/mtd/nand/bf5xx_nand.c
    index e87a572..3254348 100644
    --- a/drivers/mtd/nand/bf5xx_nand.c
    +++ b/drivers/mtd/nand/bf5xx_nand.c
    @@ -273,7 +273,7 @@ static int bf5xx_nand_correct_data(struct mtd_info *mtd, u_char *dat,
    dat += 256;
    read_ecc += 8;
    calc_ecc += 8;
    - ret = bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc);
    + ret |= bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc);
    }

    return ret;
    --
    1.5.6

    \
     
     \ /
      Last update: 2008-06-19 12:21    [W:0.021 / U:90.948 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site