]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: gpmi: imx6: fix the wrong method for checking ready/busy
authorHuang Shijie <b32955@freescale.com>
Tue, 27 Aug 2013 09:29:07 +0000 (17:29 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:33:03 +0000 (23:33 -0800)
commit5edb43e62337dc2f0b7e7558c038763ddc0f1f3c
tree6b833619fef7e078e2be550806466fac211dfbce
parent37c6b2820564f8655cb97886223b2778c1de49c7
mtd: gpmi: imx6: fix the wrong method for checking ready/busy

In the imx6, all the ready/busy pins are binding togeter.
So we should always check the ready/busy pin of the chip 0.

In the other word, when the CS1 is enabled, we should also check the
ready/busy of chip 0; if we check the ready/busy of chip 1,
we will get the wrong result.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/gpmi-nand/gpmi-lib.c