firmware: raspberrypi: Define timeout for transactions
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 6 Oct 2018 11:31:56 +0000 (13:31 +0200)
committerStefan Wahren <stefan.wahren@i2se.com>
Wed, 14 Nov 2018 19:46:18 +0000 (20:46 +0100)
commit0829187b17d8019f9bb40c56d47f37b1991a2189
tree1b3bb3854edcd832c9ad4b3566c0b2f993e63cb0
parent651022382c7f8da46cb4872a545ee1da6d097d2a
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>
drivers/firmware/raspberrypi.c