]> git.dujemihanovic.xyz Git - u-boot.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)
commit04fcd2587321177f18203f23cf3d892cd3c8814e
tree5a10440fd19924dbf024f8558e7c59dcc462671d
parenta95410696d21d38b629c61a09c100197c5fc533a
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