mtd: mxc-nand: Add a timeout when waiting for interrupt
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 10 Feb 2015 18:59:55 +0000 (19:59 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Mar 2015 22:20:11 +0000 (15:20 -0700)
commite35d1d8a1d16e9f56a9b54c96d0cb85ed621bb89
tree522c08163cb128d8575d6734c2d7d3ab3fd6bae7
parent111573ccd89b67fdef64d945cc0e611df85a6ac8
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 <u.kleine-koenig@pengutronix.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/mxc_nand.c
This page took 0.026352 seconds and 5 git commands to generate.