Message ID | 20130918214225.GP4550@ld-irv-0074.broadcom.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Sep 18, 2013 at 02:42:25PM -0700, Brian Norris wrote: > On Wed, Sep 18, 2013 at 01:58:48PM +0800, Josh Wu wrote: > > Since ecc_{strength,step}_ds is introduced in nand_chip structure for > > minimum ecc requirements. So we can use them directly and remove our > > own get_onfi_ecc_param function. > > > > Signed-off-by: Josh Wu <josh.wu@atmel.com> ... > I'll just apply the appended diff, to address these small comments and > to shorten the messages a little (they are a bit verbose and are over 80 > characters). It's still not under 80, but it's more reasonable. > > Let me know if you have any objections, or else I'll push this to > l2-mtd.git. Pushed to l2-mtd.git. Thanks! Brian
Dear Brian On 9/20/2013 6:41 AM, Brian Norris wrote: > On Wed, Sep 18, 2013 at 02:42:25PM -0700, Brian Norris wrote: >> On Wed, Sep 18, 2013 at 01:58:48PM +0800, Josh Wu wrote: >>> Since ecc_{strength,step}_ds is introduced in nand_chip structure for >>> minimum ecc requirements. So we can use them directly and remove our >>> own get_onfi_ecc_param function. >>> >>> Signed-off-by: Josh Wu <josh.wu@atmel.com> > ... >> I'll just apply the appended diff, to address these small comments and >> to shorten the messages a little (they are a bit verbose and are over 80 >> characters). It's still not under 80, but it's more reasonable. >> >> Let me know if you have any objections, or else I'll push this to >> l2-mtd.git. Just back to office, no objections of cause and thank you for the modification to fix my typos and sentence. > Pushed to l2-mtd.git. Thanks! > > Brian Best Regards, Josh Wu
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 46e8794..ef9c9f5 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -1075,15 +1075,15 @@ static int pmecc_choose_ecc(struct atmel_nand_host *host, if (host->nand_chip.ecc_strength_ds) { *cap = host->nand_chip.ecc_strength_ds; *sector_size = host->nand_chip.ecc_step_ds; - dev_info(host->dev, "minimum ECC requirements: %d bits in %d bytes\n", + dev_info(host->dev, "minimum ECC: %d bits in %d bytes\n", *cap, *sector_size); } else { *cap = 2; *sector_size = 512; - dev_info(host->dev, "cannot detect minimum ECC requirements, assume 2-bit correction per 512 bytes"); + dev_info(host->dev, "can't detect min. ECC, assume 2 bits in 512 bytes\n"); } - /* If dts file doesn't specify then use the NAND's minimum ecc parameters */ + /* If device tree doesn't specify, use NAND's minimum ECC parameters */ if (host->pmecc_corr_cap == 0) { /* use the most fitable ecc bits (the near bigger one ) */ if (*cap <= 2)