kernel: bump 4.19 to 4.19.90
[openwrt/staging/dedeckeh.git] / target / linux / brcm2708 / patches-4.19 / 950-0147-firmware-raspberrypi-Add-backward-compatible-get_thr.patch
index dea72e690e77ca0daaf3ddd55d848d2cc18e00ba..1a74f9c1fae70b5061ff6ddb821286e355f3ec4b 100644 (file)
@@ -16,7 +16,7 @@ Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
 
 --- a/drivers/firmware/raspberrypi.c
 +++ b/drivers/firmware/raspberrypi.c
-@@ -31,6 +31,7 @@ struct rpi_firmware {
+@@ -30,6 +30,7 @@ struct rpi_firmware {
        struct mbox_chan *chan; /* The property channel. */
        struct completion c;
        u32 enabled;
@@ -24,9 +24,9 @@ Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
  };
  
  static struct platform_device *g_pdev;
-@@ -171,6 +172,12 @@ int rpi_firmware_property(struct rpi_fir
-              data + sizeof(struct rpi_firmware_property_tag_header),
-              buf_size);
+@@ -172,6 +173,12 @@ int rpi_firmware_property(struct rpi_fir
+       kfree(data);
  
 +      if ((tag == RPI_FIRMWARE_GET_THROTTLED) &&
 +           memcmp(&fw->get_throttled, tag_data, sizeof(fw->get_throttled))) {
@@ -37,7 +37,7 @@ Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
        return ret;
  }
  EXPORT_SYMBOL_GPL(rpi_firmware_property);
-@@ -195,6 +202,27 @@ static int rpi_firmware_notify_reboot(st
+@@ -196,6 +203,27 @@ static int rpi_firmware_notify_reboot(st
        return 0;
  }
  
@@ -65,7 +65,7 @@ Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
  static void
  rpi_firmware_print_firmware_revision(struct rpi_firmware *fw)
  {
-@@ -227,6 +255,11 @@ rpi_register_hwmon_driver(struct device
+@@ -228,6 +256,11 @@ rpi_register_hwmon_driver(struct device
  
        rpi_hwmon = platform_device_register_data(dev, "raspberrypi-hwmon",
                                                  -1, NULL, 0);