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

Artem Bityutskiy dedekind1 at gmail.com
Sun Nov 18 09:04:58 EST 2012


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 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 at freescale.com>

Pushed to l2-mtd.git, thanks!

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20121118/d2ecd73e/attachment.sig>


More information about the linux-mtd mailing list