Commit 1cc52399 authored by David Woodhouse's avatar David Woodhouse

Revert "mtd: mxc_nand: fix 2KiB pagesize NAND on i.MX27"

This reverts commit 71b7d0d9.

The problem which that commit attempted to fix was a bootloader issue,
which had been misunderstood. The 'fix' causes lots of false bad blocks
for existing users with sane firmware.

Thanks to Mathieu Berland for diagnosing the problem coherently.
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 6f4e137e
...@@ -857,17 +857,6 @@ static void mxc_nand_command(struct mtd_info *mtd, unsigned command, ...@@ -857,17 +857,6 @@ static void mxc_nand_command(struct mtd_info *mtd, unsigned command,
} }
} }
/* Define some generic bad / good block scan pattern which are used
* while scanning a device for factory marked good / bad blocks. */
static uint8_t scan_ff_pattern[] = { 0xff, 0xff };
static struct nand_bbt_descr smallpage_memorybased = {
.options = NAND_BBT_SCAN2NDPAGE,
.offs = 5,
.len = 1,
.pattern = scan_ff_pattern
};
static int __init mxcnd_probe(struct platform_device *pdev) static int __init mxcnd_probe(struct platform_device *pdev)
{ {
struct nand_chip *this; struct nand_chip *this;
...@@ -984,10 +973,7 @@ static int __init mxcnd_probe(struct platform_device *pdev) ...@@ -984,10 +973,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
goto escan; goto escan;
} }
if (mtd->writesize == 2048) { host->pagesize_2k = (mtd->writesize == 2048) ? 1 : 0;
host->pagesize_2k = 1;
this->badblock_pattern = &smallpage_memorybased;
}
if (this->ecc.mode == NAND_ECC_HW) { if (this->ecc.mode == NAND_ECC_HW) {
switch (mtd->oobsize) { switch (mtd->oobsize) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment