]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: gpmi: scan two nand chips
authorHuang Shijie <b32955@freescale.com>
Tue, 27 Aug 2013 09:29:06 +0000 (17:29 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 23 Oct 2013 22:45:27 +0000 (15:45 -0700)
Some nand chip has two DIEs in a single chip, such as Micron MT29F32G08QAA.
Each die has its own chip select pin, so this chip acts as two nand
chips.

If we only scan one chip, we may find that we only get 2G for this chip,
but in actually, this chip's size is 4G.

So scan two chips by default.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c

index c9b335cfb44472245dcb14509f2f12ac0bfe7102..6807d7cfe49c1ce7f5f7a68c305e46bdd2f283c4 100644 (file)
@@ -1674,7 +1674,7 @@ static int gpmi_nfc_init(struct gpmi_nand_data *this)
        if (ret)
                goto err_out;
 
-       ret = nand_scan_ident(mtd, 1, NULL);
+       ret = nand_scan_ident(mtd, 2, NULL);
        if (ret)
                goto err_out;