firmware: raspberrypi: Define timeout for transactions
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 6 Oct 2018 11:31:56 +0000 (13:31 +0200)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 4 Nov 2019 09:00:55 +0000 (18:00 +0900)
commit709ecf46a7dea81a5b72e1a8d87a1cac51821c8c
tree7b3a556a8fd771c13335ac710117b3c2daa1f3d4
parentcbaabfb0bc5e51765170d04cd685f5dbf655b87b
firmware: raspberrypi: Define timeout for transactions

We should never assume to get a reply from the firmware otherwise
the call could block forever and the user don't get informed. So
define a timeout of 1 sec and print a stacktrace once in the unlikely
case the timeout expired.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
[jhoon20.kim: cherry picked from commit 0829187b17d8 for debugging booting issues]
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Change-Id: I2bb14167174662a84c6b2a8caaffc70485693816
drivers/firmware/raspberrypi.c