kernel: bump 4.9 to 4.9.207
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0131-firmware-raspberrypi-Notify-firmware-of-a-reboot.patch
index 154aa1ecfe3f046397555636982c69e3c156b14b..f74f75e76931bb906c6c75d000fe013c72ce85dd 100644 (file)
@@ -1,7 +1,7 @@
-From 8e3109c37fc00a087aba08b92da9a416eb2cd37a Mon Sep 17 00:00:00 2001
+From 68aaa2f653c83f8fda6032153566b4f895dff524 Mon Sep 17 00:00:00 2001
 From: Phil Elwell <phil@raspberrypi.org>
 Date: Sat, 12 May 2018 21:35:43 +0100
-Subject: [PATCH 131/703] firmware/raspberrypi: Notify firmware of a reboot
+Subject: [PATCH 131/806] firmware/raspberrypi: Notify firmware of a reboot
 
 Register for reboot notifications, sending RPI_FIRMWARE_NOTIFY_REBOOT
 over the mailbox interface on reception.
@@ -13,15 +13,15 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
 
 --- a/drivers/firmware/raspberrypi.c
 +++ b/drivers/firmware/raspberrypi.c
-@@ -14,6 +14,7 @@
- #include <linux/module.h>
+@@ -15,6 +15,7 @@
  #include <linux/of_platform.h>
  #include <linux/platform_device.h>
+ #include <linux/slab.h>
 +#include <linux/reboot.h>
+ #include <linux/slab.h>
  #include <soc/bcm2835/raspberrypi-firmware.h>
  
- #define MBOX_MSG(chan, data28)                (((data28) & ~0xf) | ((chan) & 0xf))
-@@ -174,6 +175,26 @@ int rpi_firmware_property(struct rpi_fir
+@@ -175,6 +176,26 @@ int rpi_firmware_property(struct rpi_fir
  }
  EXPORT_SYMBOL_GPL(rpi_firmware_property);
  
@@ -48,7 +48,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  static void
  rpi_firmware_print_firmware_revision(struct rpi_firmware *fw)
  {
-@@ -284,15 +305,32 @@ static struct platform_driver rpi_firmwa
+@@ -285,15 +306,32 @@ static struct platform_driver rpi_firmwa
        .remove         = rpi_firmware_remove,
  };