]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mtd: rawnand: omap: Add larger page NAND chips support
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 10 Jun 2021 13:49:06 +0000 (15:49 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 18 Jun 2021 07:45:21 +0000 (09:45 +0200)
commitc06dd49fd59a0abd6fa3d9fc5f6eb1776af4e5e4
tree0f5a7d99b308b7f09ed7c33d06d950cbb7bf9691
parent496030b1b71e2129ce2cf1411f18ee55ec305ab6
mtd: rawnand: omap: Add larger page NAND chips support

There is no reason to be limited to 4kiB page NAND chips just because
this is the maximum length the ELM is able to handle in one go. Just
call the ELM several times and it will process as many data as needed.

Here we introduce the concept of ECC page (which is at most 4kiB). The
ELM will be sought as many times as there are ECC pages.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Ryan Barnett <ryan.barnett@collins.com>
Link: https://lore.kernel.org/linux-mtd/20210610134906.3503303-6-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/omap2.c
drivers/mtd/nand/raw/omap_elm.c