From: Uwe Kleine-König Date: Tue, 10 Feb 2015 18:59:55 +0000 (+0100) Subject: mtd: mxc-nand: Add a timeout when waiting for interrupt X-Git-Tag: omap-for-v4.1/fixes-rc1~47^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e35d1d8a1d16e9f56a9b54c96d0cb85ed621bb89;p=pandora-kernel.git mtd: mxc-nand: Add a timeout when waiting for interrupt While extending the mxc-nand driver it happend to me a few times that the device was stuck and this made the machine hang during boot. So implement a timeout and print a stack trace the first time this happens to make it debuggable. The return type of the waiting function is also changed to int to be able to handle the timeout in the caller. Signed-off-by: Uwe Kleine-König Signed-off-by: Brian Norris --- Reading git-diff-tree failed