[PATCH 1/2] mtd: nand: add OOB argument to NAND {read, write}_page interfaces
Mike Dunn
mikedunn at newsguy.com
Mon Apr 23 13:14:50 EDT 2012
On 04/23/2012 02:14 AM, Bastian Hecht wrote:
>
> Following this thread, I wondered how mtd_write_oob is meant to work.
> The sh_flctl code simply writes the OOB data 1 to 1 into the oob area
> of the nand chip when using hardware ECC. So when reading this, it
> should result in a corrupted page. Is the driver meant to OR the ECC
> code to the buffer? Then the driver would need a page read and write
> it back applying the oob data, no?
Good question. I would guess that one-to-one placement is probably only
appropriate for MTD_OPS_RAW.
Mike
More information about the linux-mtd
mailing list