aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorHuang Shijie <[email protected]>2012-11-09 16:23:45 +0800
committerArtem Bityutskiy <[email protected]>2012-11-18 16:02:31 +0200
commit07300164657526d8d26c626c43723c310fbf3616 (patch)
tree750a5a6e4bec684577c8969a0960f5e533ea7932 /lib/mpi/mpi-internal.h
parentded4c55d108e0e4e4ba221b39a782e85d77a5ca0 (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 <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions