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

2015-10-13 Thread Brian Norris
On Tue, Oct 13, 2015 at 11:22:18AM +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 v4] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-13 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