]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/mtd/nand/nand_base.c
TX6 Release 2013-04-22
[karo-tx-uboot.git] / drivers / mtd / nand / nand_base.c
index a2d06be99fcf4f3f0882671a514b36b4afecb7a3..d98e146d6f7111c3c150a364d0731ba2a6957480 100644 (file)
@@ -1904,8 +1904,6 @@ static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob, size_t len,
        return NULL;
 }
 
-#define NOTALIGNED(x)  ((x & (chip->subpagesize - 1)) != 0)
-
 /**
  * nand_do_write_ops - [Internal] NAND write with ECC
  * @mtd:       MTD device structure
@@ -3119,6 +3117,8 @@ int nand_scan_tail(struct mtd_info *mtd)
        chip->ecc.steps = mtd->writesize / chip->ecc.size;
        if (chip->ecc.steps * chip->ecc.size != mtd->writesize) {
                printk(KERN_WARNING "Invalid ecc parameters\n");
+               printk(KERN_WARNING "steps=%d size=%d writesize=%d\n",
+                       chip->ecc.steps, chip->ecc.size, mtd->writesize);
                BUG();
        }
        chip->ecc.total = chip->ecc.steps * chip->ecc.bytes;