mtd: de-select the chip when it is not used
authorHuang Shijie <b32955@freescale.com>
Fri, 9 Nov 2012 08:23:45 +0000 (16:23 +0800)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sun, 18 Nov 2012 14:02:31 +0000 (16:02 +0200)
commit07300164657526d8d26c626c43723c310fbf3616
tree750a5a6e4bec684577c8969a0960f5e533ea7932
parentded4c55d108e0e4e4ba221b39a782e85d77a5ca0
mtd: de-select the chip when it is not used

When we scan several nand chips with nand_scan(), such as
     .......................
      nand_scan(*, 2);
     .......................

In nand_scan_ident(), the maxchips will become 2, so the current code
will select chip 1 to read the device ID. But the chip 0 is still
selected in this case.

To make the logic clear, we'd better de-select the chip when it is not used.

This patch de-select the nand chip if it is not used any more.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/nand/nand_base.c
This page took 0.027509 seconds and 5 git commands to generate.