Re: [PATCH v3 13/37] mtd: nand: denali: avoid hard-coding ecc.strength and ecc.bytes

2017-03-31 Thread Boris Brezillon
On Thu, 30 Mar 2017 15:45:59 +0900 Masahiro Yamada wrote: > > diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c > index 1681a30..c3bc333 100644 > --- a/drivers/mtd/nand/denali_dt.c > +++ b/drivers/mtd/nand/denali_dt.c > @@ -31,10 +31,12 @@ struct denali_dt { > > struct

[PATCH v3 13/37] mtd: nand: denali: avoid hard-coding ecc.strength and ecc.bytes

2017-03-29 Thread Masahiro Yamada
Another problem of this driver is hard-coded ecc.strength and ecc.bytes. Currently ecc.bytes is defined as follows: #define ECC_8BITS 14 #define ECC_15BITS26 The parameters were hard-coded because only the following two cases are possible on Intel platforms: - ecc.size = 512, ecc.s