[MTD] NAND: use SmartMedia ECC byte order for ndfc
authorTimo Lindhorst <lindhors@vnet.ibm.com>
Tue, 5 Dec 2006 14:23:33 +0000 (15:23 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 5 Dec 2006 18:00:13 +0000 (18:00 +0000)
Select MTD_NAND_ECC_SMC (ECC byte order according to the Smart Media
Specification) if MTD_NAND_NDFC is used.
Using the wrong byte order causes fatal, unnoticed data damage.

For further information see:
http://lists.infradead.org/pipermail/linux-mtd/2006-November/016920.html

Signed-off-by: Timo Lindhorst <lindhors@linux.vnet.ibm.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/Kconfig

index 06627757f500b83cc3b2e6a2a6c23097bb3bee6c..358f55a82dbe4ebb73b1b0ee460063a6145e3f0e 100644 (file)
@@ -133,6 +133,7 @@ config MTD_NAND_S3C2410_HWECC
 config MTD_NAND_NDFC
        tristate "NDFC NanD Flash Controller"
        depends on MTD_NAND && 44x
+       select MTD_NAND_ECC_SMC
        help
         NDFC Nand Flash Controllers are integrated in EP44x SoCs