Re: [PATCH v3] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-13 Thread Boris Brezillon
Hi Brian, On Mon, 12 Oct 2015 16:35:37 -0700 Brian Norris wrote: > On Fri, Oct 02, 2015 at 07:53:25AM +0200, Boris Brezillon wrote: > > The ->read_xxx() methods are all passed the page number the NAND controller > > is supposed to read, but ->write_xxx() do not have such a parameter. > > > > Th

Re: [PATCH v3] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-12 Thread Brian Norris
On Fri, Oct 02, 2015 at 07:53:25AM +0200, Boris Brezillon wrote: > The ->read_xxx() methods are all passed the page number the NAND controller > is supposed to read, but ->write_xxx() do not have such a parameter. > > This is a problem if we want to properly implement data > scrambling/randomizati

[PATCH v3] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-01 Thread Boris Brezillon
The ->read_xxx() methods are all passed the page number the NAND controller is supposed to read, but ->write_xxx() do not have such a parameter. This is a problem if we want to properly implement data scrambling/randomization in order to mitigate MLC sensibility to repeated pattern: to prevent bit