Re: [PATCH] mtd: de-select the chip when it is not used

2012-11-18 Thread Artem Bityutskiy
On Fri, 2012-11-09 at 16:23 +0800, Huang Shijie wrote: > 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 t

[PATCH] mtd: de-select the chip when it is not used

2012-11-09 Thread Huang Shijie
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.