[PATCH 1/2] mtd: nand: add OOB argument to NAND {read, write}_page interfaces

Matthieu CASTET matthieu.castet at parrot.com
Tue Apr 17 03:50:28 EDT 2012


Brian Norris a écrit :
> New NAND controllers can perform read/write via HW engines which don't expose
> OOB data in their DMA mode. To reflect this, we should rework the nand_chip /
> nand_ecc_ctrl interfaces that assume that drivers will always read/write OOB
> data in the nand_chip.oob_poi buffer. A better interface would pass the
> appropriate buffer explicitly when OOB data is requested and otherwise pass a
> NULL pointer, meaning that no OOB data is needed.

If I understand correctly you propose that these driver will fetch oob (via pio
mode) only when needed ?
Do you have an example of such controller ?

Matthieu



More information about the linux-mtd mailing list