[PATCH v4 1/3] mtd: nand: mxc_nand: separate page read from ecc calc

Miquel Raynal miquel.raynal at bootlin.com
Mon May 27 05:18:54 PDT 2024


On Wed, 2024-05-22 at 05:39:51 UTC, Sascha Hauer wrote:
> Our read_page hook currently reads out a page and also counts and
> returns the number of bitflips. In upcoming exec_op conversion we'll
> need to read the page data in exec_op, but the bitflip information
> will be needed in mxc_nand_read_page(). To ease exec_op conversion
> separate the page read out from the bitflip evaluation.
> 
> For the v2/v3 controllers we can leave the bitflip information in the
> status register for later evaluation. For the v1 controller this is
> not possible, because the status register is overwritten with each
> subpage read. We therefore store the bitflip information in the private
> data.
> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel



More information about the linux-mtd mailing list