From: Ezequiel Garcia Date: Thu, 14 Nov 2013 21:25:26 +0000 (-0300) Subject: mtd: nand: pxa3xx: Use a completion to signal device ready X-Git-Tag: v3.14-rc1~65^2~130 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55d9fd6e94caf5f30d027f49bd0a4955bc6b3a8c;p=pandora-kernel.git mtd: nand: pxa3xx: Use a completion to signal device ready The expected behavior of the waitfunc() NAND chip call is to wait for the device to be READY (this is a standard chip line). However, the current implementation does almost nothing, which opens the possibility of issuing a command to a non-ready device. Fix this by adding a new completion to wait for the ready event to arrive. Signed-off-by: Ezequiel Garcia Tested-by: Daniel Mack Signed-off-by: Brian Norris --- Reading git-diff-tree failed