]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2018 01:46:24 +0000 (17:46 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2018 01:46:24 +0000 (17:46 -0800)
added patches:
platform-x86-dell-laptop-fix-kbd_get_state-s-request-value.patch

queue-4.15/platform-x86-dell-laptop-fix-kbd_get_state-s-request-value.patch [new file with mode: 0644]
queue-4.15/series

diff --git a/queue-4.15/platform-x86-dell-laptop-fix-kbd_get_state-s-request-value.patch b/queue-4.15/platform-x86-dell-laptop-fix-kbd_get_state-s-request-value.patch
new file mode 100644 (file)
index 0000000..ce53f55
--- /dev/null
@@ -0,0 +1,40 @@
+From eca39e7f0cdb9bde4003a29149fa695e876c6f73 Mon Sep 17 00:00:00 2001
+From: Laszlo Toth <laszlth@gmail.com>
+Date: Tue, 13 Feb 2018 21:43:43 +0100
+Subject: platform/x86: dell-laptop: fix kbd_get_state's request value
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Laszlo Toth <laszlth@gmail.com>
+
+commit eca39e7f0cdb9bde4003a29149fa695e876c6f73 upstream.
+
+Commit 9862b43624a5 ("platform/x86: dell-laptop: Allocate buffer on heap
+rather than globally")
+broke one request, changed it back to the original value.
+
+Tested on a Dell E6540, backlight came back.
+
+Fixes: 9862b43624a5 ("platform/x86: dell-laptop: Allocate buffer on heap rather than globally")
+Signed-off-by: Laszlo Toth <laszlth@gmail.com>
+Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
+Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
+Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/platform/x86/dell-laptop.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/platform/x86/dell-laptop.c
++++ b/drivers/platform/x86/dell-laptop.c
+@@ -1254,7 +1254,7 @@ static int kbd_get_state(struct kbd_stat
+       struct calling_interface_buffer buffer;
+       int ret;
+-      dell_fill_request(&buffer, 0, 0, 0, 0);
++      dell_fill_request(&buffer, 0x1, 0, 0, 0);
+       ret = dell_send_request(&buffer,
+                               CLASS_KBD_BACKLIGHT, SELECT_KBD_BACKLIGHT);
+       if (ret)
index 8efc78bc911c913e5b2da4959e837399135ea704..8c8113a71c49fc234e7b1bfead355e8df9b29a4c 100644 (file)
@@ -120,3 +120,4 @@ arm-dts-logicpd-som-lv-fix-i2c1-pinmux.patch
 arm-dts-logicpd-torpedo-fix-i2c1-pinmux.patch
 powerpc-64s-radix-boot-time-null-pointer-protection-using-a-guard-pid.patch
 md-only-allow-remove_and_add_spares-when-no-sync_thread-running.patch
+platform-x86-dell-laptop-fix-kbd_get_state-s-request-value.patch