[PATCH v2 0/2] Fix OMAP2 ECC/OOB layout logic

Miquel Raynal miquel.raynal at bootlin.com
Wed Jan 20 05:17:48 EST 2021


Hello,

I already sent a v1 for this fix but the problem I had was that it was
using the software BCH ECC engine internal structure and this was kind
of breaking the layering.

I attempted to export more variables which could be useful to the
users, avoiding the need to dereference private structures, but then I
realized we already had everything in hand.

Patch 1 is new and simply adds a helper that will be used by patch 2
for readability. I plan to send both patches through the next fixes
PR.

Cheers,
Miquèl

Miquel Raynal (2):
  mtd: nand: Add a helper to retrieve the number of ECC steps
  mtd: rawnand: omap: Use ECC information from the generic structures

 drivers/mtd/nand/raw/omap2.c | 16 ++++++++++------
 include/linux/mtd/nand.h     | 12 ++++++++++++
 2 files changed, 22 insertions(+), 6 deletions(-)

-- 
2.20.1




More information about the linux-mtd mailing list