Thanks for your reply. Following your suggestion, should I ask Scott Wood? In some mailing lists we are advised not to directly send emails, if not invited.
Regards, Fernando On Wed, Jul 18, 2018 at 4:03 PM, Wolfgang Denk <w...@denx.de> wrote: > Dear Fernando, > > In message > <CAK3Qp=uwwr62hg50lxdq+44z5wetxvnxzzvdcqkn_tptsdj...@mail.gmail.com> you > wrote: >> >> I'm rebasing our internal code over v2017.11 and I found an unexpected >> change in drivers/mtd/nand/nand_base.c: > > In such cases it is always a good idea to run "git blame" to find > out where the code is coming from... > >> /* See nand_bch_init() for details. */ >> ecc->bytes = 0; >> ecc->priv = nand_bch_init(mtd); >> ----- >> >> This means that ecc->bytes = 0 is overwritting the board driver >> supplied value. Actually, back in v2014.03, that specific line >> (ecc->bytes = 0) did not exit. I also checked today in v2018.07 and >> master, and this potential bug is still there. > > git blame says this comes from > > commit ceee07b65875bb01bef55cba06940ef7afc1afba > Author: Scott Wood <o...@buserror.net> > Date: Mon May 30 13:57:58 2016 -0500 > > mtd: nand: Sync with Linux v4.6 > > Updates the NAND code to match Linux v4.6. The previous sync was from > Linux v4.1 in commit d3963721d93fafa. > > Note that none of the individual NAND drivers tracked Linux closely > enough to be synced themselves, other than manually applying a few > cross-tree changes. > > Signed-off-by: Scott Wood <o...@buserror.net> > Tested-by: Heiko Schocher <h...@denx.de> > > > Best regards, > > Wolfgang Denk > > -- > DENX Software Engineering GmbH, Managing Director: Wolfgang Denk > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de > That's their goal, remember, a goal that's really contrary to that of > the programmer or administrator. We just want to get our jobs done. > $Bill just wants to become $$Bill. These aren't even marginallly > congruent. > -- Tom Christiansen in <6jhtqk$qls$1...@csnews.cs.colorado.edu> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot