Skip to contentSkip to conversation

ARM: S3C24XX: Fix NAND ECC mode for mini2440 board

PATCH New snawrocki at kernel.org 2 participants 2 messages Aug 16, 2017 – Aug 21, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: S3C24XX: Fix NAND ECC mode for mini2440 board

From: Sylwester Nawrocki <[email protected]>

After commit e9f66ae23c "mtd: s3c2410: make ecc mode configurable via platform data" booting of the mini2440 board is broken, since for this board we have CONFIG_MTD_NAND_S3C2410_HWECC set. The console gets flooded with errors reported by the mtd subsystem. This patch changes ecc_mode to NAND_ECC_HW which restores proper operation of the NAND flash memory.

Cc Sergio Prado <[email protected]>
Fixes e9f66ae23c "mtd: s3c2410: make ecc mode configurable via platform data"
---
 arch/arm/mach-s3c24xx/mach-mini2440.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-s3c24xx/mach-mini2440.c +1 -1
index 98bff4b..3e75efd 100644
@@ -289,7 +289,7 @@
 	.nr_sets	= ARRAY_SIZE(mini2440_nand_sets),
 	.sets		= mini2440_nand_sets,
 	.ignore_unset_ecc = 1,
-	.ecc_mode       = NAND_ECC_SOFT,
+	.ecc_mode       = NAND_ECC_HW,
 };
 
 /* DM9000AEP 10/100 ethernet controller */
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw

PATCH 1/1 ARM: S3C24XX: Fix NAND ECC mode for mini2440 board

Quoted 11 lines · snawrocki at kernel.org

From: Sylwester Nawrocki <[email protected]>

After commit e9f66ae23c "mtd: s3c2410: make ecc mode configurable via platform data" booting of the mini2440 board is broken, since for this board we have CONFIG_MTD_NAND_S3C2410_HWECC set. The console gets flooded with errors reported by the mtd subsystem. This patch changes ecc_mode to NAND_ECC_HW which restores proper operation of the NAND flash memory.

Cc Sergio Prado <[email protected]>
Fixes e9f66ae23c "mtd: s3c2410: make ecc mode configurable via platform data"

Thanks, applied for next cycle. Please do not forget about checkpatch - he would point about wrong format of commit SHA and fixes tag (too short SHA and missing ()).

Best regards,
Krzysztof