mtd: nand: support OOB without ECC
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mtd: support writing OOB without ECCdrivers/ drivers/ include/ | +15 | 0 replies | |
| 2/2 | mtd: support reading OOB without ECCdrivers/ drivers/ include/ | +17 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] mtd: nand: support OOB without ECC
Hi,
This is an update to the first two patches from my RFC I sent earlier:
http://lists.infradead.org/pipermail/linux-mtd/2011-August/037522.html
I have determined that the problems I am facing regarding nandwrite -n' and nanddump -n -o' are unique to hardware that performs error correction when doing OOB-only operations. AFAICT, this is not widespread in MTD.
These patches supply a new replaceable interface, where systems that need to do so can supply their own {read,write}_oob_raw functions. Otherwise, the NAND system will simply use the same OOB functions for both raw and normal read/write, making little to no change in the overall operation of most systems.
I've tested to make sure this doesn't break anything with nandsim, but any further testing on other hardware would be great. Also, if anyone else can confirm that their system does not perform 'noecc' operations correctly, then let me know.
Brian
Brian Norris (2):
mtd: support writing OOB without ECC
mtd: support reading OOB without ECC
drivers/mtd/mtdchar.c | 17 ++++++++++------- drivers/mtd/nand/nand_base.c | 18 ++++++++++++++++-- include/linux/mtd/nand.h | 6 ++++++ 3 files changed, 32 insertions(+), 9 deletions(-)
Signature · 1 line
1.7.5.4