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>
Tue, 11 Jun 2019 00:35:54 +0000 (09:35 +0900)
commit2031d321ae9f4b50a0cad348d03b8ae2564f237f
tree8616b47916e9767a28679f0a550445def22053a9
parent1d7ac536a73211c661c343c16ff5b8a36015dd6b
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