Re: [PATCH 1/2] mtd: remove the de-select chip code in nand_release_device()

2012-11-30 Thread Artem Bityutskiy
On Mon, 2012-11-19 at 14:43 +0800, Huang Shijie wrote: > The nand_get_device() does not select the chip, but nand_release_device() > does de-select the chip. It is really strange. > > With the current code, nand_sync() will de-select the chip, even if the chip > has never been selected. > > To ma

[PATCH 1/2] mtd: remove the de-select chip code in nand_release_device()

2012-11-18 Thread Huang Shijie
The nand_get_device() does not select the chip, but nand_release_device() does de-select the chip. It is really strange. With the current code, nand_sync() will de-select the chip, even if the chip has never been selected. To make the balance of select/de-select chip, it's better to remove the de