diff options
author | Huang Shijie <b32955@freescale.com> | 2012-11-09 16:23:45 +0800 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-11-18 16:02:31 +0200 |
commit | 07300164657526d8d26c626c43723c310fbf3616 (patch) | |
tree | 750a5a6e4bec684577c8969a0960f5e533ea7932 /include/linux/io-mapping.h | |
parent | ded4c55d108e0e4e4ba221b39a782e85d77a5ca0 (diff) |
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 'include/linux/io-mapping.h')
0 files changed, 0 insertions, 0 deletions