Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6: (120 commits) [MTD] Fix mtdoops.c compilation [MTD] [NOR] fix startup lock when using multiple nor flash chips [MTD] [DOC200x] eccbuf is statically defined and always evaluate to true [MTD] Fix maps/physmap.c compilation with CONFIG_PM [MTD] onenand: Add panic_write function to the onenand driver [MTD] mtdoops: Use the panic_write function when present [MTD] Add mtd panic_write function pointer [MTD] [NAND] Freescale enhanced Local Bus Controller FCM NAND support. [MTD] physmap.c: Add support for multiple resources [MTD] [NAND] Fix misparenthesization introduced by commit 78b65179... [MTD] [NAND] Fix Blackfin NFC ECC calculating bug with page size 512 bytes [MTD] [NAND] Remove wrong operation in PM function of the BF54x NFC driver [MTD] [NAND] Remove unused variable in plat_nand_remove [MTD] Unlocking all Intel flash that is locked on power up. [MTD] [NAND] at91_nand: Make mtdparts option can override board info [MTD] mtdoops: Various minor cleanups [MTD] mtdoops: Ensure sequential write to the buffer [MTD] mtdoops: Perform write operations in a workqueue [MTD] mtdoops: Add further error return code checking [MTD] [NOR] Test devtype, not definition in flash_probe(), drivers/mtd/devices/lart.c ...
This commit is contained in:
@@ -2469,8 +2469,12 @@ int nand_scan_tail(struct mtd_info *mtd)
|
||||
chip->ecc.write_oob = nand_write_oob_std;
|
||||
|
||||
case NAND_ECC_HW_SYNDROME:
|
||||
if (!chip->ecc.calculate || !chip->ecc.correct ||
|
||||
!chip->ecc.hwctl) {
|
||||
if ((!chip->ecc.calculate || !chip->ecc.correct ||
|
||||
!chip->ecc.hwctl) &&
|
||||
(!chip->ecc.read_page ||
|
||||
chip->ecc.read_page == nand_read_page_hwecc ||
|
||||
!chip->ecc.write_page ||
|
||||
chip->ecc.write_page == nand_write_page_hwecc)) {
|
||||
printk(KERN_WARNING "No ECC functions supplied, "
|
||||
"Hardware ECC not possible\n");
|
||||
BUG();
|
||||
|
Reference in New Issue
Block a user