mbox series

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

Message ID 20210120101750.1163-1-miquel.raynal@bootlin.com
Headers show
Series Fix OMAP2 ECC/OOB layout logic | expand

Message

Miquel Raynal Jan. 20, 2021, 10:17 a.m. UTC
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(-)