diff options
author | Huang Shijie <b32955@freescale.com> | 2012-11-09 08:23:45 (GMT) |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-11-18 14:02:31 (GMT) |
commit | 07300164657526d8d26c626c43723c310fbf3616 (patch) | |
tree | 750a5a6e4bec684577c8969a0960f5e533ea7932 /drivers/mtd/tests | |
parent | ded4c55d108e0e4e4ba221b39a782e85d77a5ca0 (diff) | |
download | linux-07300164657526d8d26c626c43723c310fbf3616.tar.xz |
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>
Diffstat (limited to 'drivers/mtd/tests')
0 files changed, 0 insertions, 0 deletions