Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: gpmi: only scan two chips for imx6

We cannot scan two chips for imx23 and imx28:
imx23: the Ready-Busy1 line is not connected for some board.
imx28: we do not set the pinctrl for Ready-Busy1

So we only scan two chips for imx6.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>

authored by

Huang Shijie and committed by
Brian Norris
80bd33ac edaf4d4a

+1 -1
+1 -1
drivers/mtd/nand/gpmi-nand/gpmi-nand.c
··· 1674 1674 if (ret) 1675 1675 goto err_out; 1676 1676 1677 - ret = nand_scan_ident(mtd, 2, NULL); 1677 + ret = nand_scan_ident(mtd, GPMI_IS_MX6Q(this) ? 2 : 1, NULL); 1678 1678 if (ret) 1679 1679 goto err_out; 1680 1680