0503-raspberrypi-firmware-Export-the-general-transaction-.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From d80f8d5336690bb4b8ee3b5b374d63062ca2a1cc 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. The vc4-firmware-kms module is going to be doing the MBOX FB call.
  7. Signed-off-by: Eric Anholt <eric@anholt.net>
  8. ---
  9. drivers/firmware/raspberrypi.c | 3 ++-
  10. include/soc/bcm2835/raspberrypi-firmware.h | 1 +
  11. 2 files changed, 3 insertions(+), 1 deletion(-)
  12. --- a/drivers/firmware/raspberrypi.c
  13. +++ b/drivers/firmware/raspberrypi.c
  14. @@ -42,7 +42,7 @@ static void response_callback(struct mbo
  15. * Sends a request to the firmware through the BCM2835 mailbox driver,
  16. * and synchronously waits for the reply.
  17. */
  18. -static int
  19. +int
  20. rpi_firmware_transaction(struct rpi_firmware *fw, u32 chan, u32 data)
  21. {
  22. u32 message = MBOX_MSG(chan, data);
  23. @@ -63,6 +63,7 @@ rpi_firmware_transaction(struct rpi_firm
  24. return ret;
  25. }
  26. +EXPORT_SYMBOL_GPL(rpi_firmware_transaction);
  27. /**
  28. * rpi_firmware_property_list - Submit firmware property list
  29. --- a/include/soc/bcm2835/raspberrypi-firmware.h
  30. +++ b/include/soc/bcm2835/raspberrypi-firmware.h
  31. @@ -129,5 +129,6 @@ int rpi_firmware_property(struct rpi_fir
  32. int rpi_firmware_property_list(struct rpi_firmware *fw,
  33. void *data, size_t tag_size);
  34. struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node);
  35. +int rpi_firmware_transaction(struct rpi_firmware *fw, u32 chan, u32 data);
  36. #endif /* __SOC_RASPBERRY_FIRMWARE_H__ */