8f574a3226fabea85c9ecde6da38700f90bd9634
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0103-raspberrypi-firmware-Export-the-general-transaction-.patch
1 From 79d09be78f74e3c81ff25f1f78fb17a2f112e3cd Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Wed, 14 Sep 2016 09:16:19 +0100
4 Subject: [PATCH] raspberrypi-firmware: Export the general transaction
5 function.
6
7 The vc4-firmware-kms module is going to be doing the MBOX FB call.
8
9 Signed-off-by: Eric Anholt <eric@anholt.net>
10 ---
11 drivers/firmware/raspberrypi.c | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
13
14 --- a/drivers/firmware/raspberrypi.c
15 +++ b/drivers/firmware/raspberrypi.c
16 @@ -45,7 +45,7 @@ static void response_callback(struct mbo
17 * Sends a request to the firmware through the BCM2835 mailbox driver,
18 * and synchronously waits for the reply.
19 */
20 -static int
21 +int
22 rpi_firmware_transaction(struct rpi_firmware *fw, u32 chan, u32 data)
23 {
24 u32 message = MBOX_MSG(chan, data);
25 @@ -66,6 +66,7 @@ rpi_firmware_transaction(struct rpi_firm
26
27 return ret;
28 }
29 +EXPORT_SYMBOL_GPL(rpi_firmware_transaction);
30
31 /**
32 * rpi_firmware_property_list - Submit firmware property list