From e35d1d8a1d16e9f56a9b54c96d0cb85ed621bb89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Tue, 10 Feb 2015 19:59:55 +0100 Subject: [PATCH] mtd: mxc-nand: Add a timeout when waiting for interrupt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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-format-patch failed