]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 23 Oct 2013 22:46:05 +0000 (15:46 -0700)
commita27429a9728ccb5bd0c2d2f998e10ab0f4e8dcdd
treeae962699c85ffcea7f6c13f36951d0ea5e81a08a
parent2700730e51d946a0e82e6b25e40589f26b0822c9
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