summaryrefslogtreecommitdiff
path: root/drivers/mtd/tests
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2012-11-09 08:23:45 (GMT)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-11-18 14:02:31 (GMT)
commit07300164657526d8d26c626c43723c310fbf3616 (patch)
tree750a5a6e4bec684577c8969a0960f5e533ea7932 /drivers/mtd/tests
parentded4c55d108e0e4e4ba221b39a782e85d77a5ca0 (diff)
downloadlinux-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