Merge tag 'v3.16-rc6' into MTD development branch

Linux 3.16-rc6
This commit is contained in:
Brian Norris
2014-07-20 23:59:16 -07:00
1320 changed files with 16180 additions and 9580 deletions

View File

@@ -4064,8 +4064,10 @@ int nand_scan_tail(struct mtd_info *mtd)
ecc->layout->oobavail += ecc->layout->oobfree[i].length;
mtd->oobavail = ecc->layout->oobavail;
/* ECC sanity check: warn noisily if it's too weak */
WARN_ON(!nand_ecc_strength_good(mtd));
/* ECC sanity check: warn if it's too weak */
if (!nand_ecc_strength_good(mtd))
pr_warn("WARNING: %s: the ECC used on your system is too weak compared to the one required by the NAND chip\n",
mtd->name);
/*
* Set the number of read / write steps for one page depending on ECC