firmware: raspberrypi: Define timeout for transactions
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 6 Oct 2018 11:31:56 +0000 (13:31 +0200)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 2 Apr 2020 04:09:02 +0000 (13:09 +0900)
commit231cf5132f6a82e06329b390fb9591aa4902c65f
tree0c2894229cf6a948b30b0adb97466d77b4b7bf91
parent2c65c8b0f759446af8876876b9749734531a1eee
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