]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: fsmc: Fix use of SM ORDER
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 28 Sep 2021 22:15:00 +0000 (00:15 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 15 Oct 2021 10:20:57 +0000 (12:20 +0200)
commit92c7996f98f1be31eb2c2b9dc52ab513cf7110a4
tree8b2fdeeea9aea0ca5f8aa61247d0e091b528411b
parent5496179efad715685174cf95c40e37d0d036ca16
mtd: rawnand: fsmc: Fix use of SM ORDER

The introduction of the generic ECC engine API lead to a number of
changes in various drivers which broke some of them. Here is a typical
example: I expected the SM_ORDER option to be handled by the Hamming ECC
engine internals. Problem: the fsmc driver does not instantiate (yet) a
real ECC engine object so we had to use a 'bare' ECC helper instead of
the shiny rawnand functions. However, when not intializing this engine
properly and using the bare helpers, we do not get the SM ORDER feature
handled automatically. It looks like this was lost in the process so
let's ensure we use the right SM ORDER now.

Fixes: e2d324fd0ddd ("mtd: rawnand: fsmc: Fix external use of SW Hamming ECC helper")
Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210928221507.199198-2-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/fsmc_nand.c