]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: rawnand: omap_gpmc: Fix BCH6/16 HW based correction
authorRoger Quadros <rogerq@kernel.org>
Tue, 20 Dec 2022 10:21:56 +0000 (12:21 +0200)
committerDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 8 Jan 2023 09:33:20 +0000 (10:33 +0100)
commit8b1e037387d932ae494ebda8832a965a7edb7c4f
tree5a10440fd19924dbf024f8558e7c59dcc462671d
parent67034e7a12b635cd143ff78e012611af486741e8
mtd: rawnand: omap_gpmc: Fix BCH6/16 HW based correction

The BCH detection hardware can generate ECC bytes for multiple
sectors in one go. Use that feature.

correct() only corrects one sector at a time so we need to call it
repeatedly for each sector.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://lore.kernel.org/all/20221220102203.52398-2-rogerq@kernel.org
drivers/mtd/nand/raw/omap_gpmc.c