From: Greg Kroah-Hartman Date: Thu, 8 Mar 2018 01:46:24 +0000 (-0800) Subject: 4.15-stable patches X-Git-Tag: v4.14.25~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9e6d1c9e21999427a93f322ca7257d8a75ef4c6f;p=thirdparty%2Fkernel%2Fstable-queue.git 4.15-stable patches added patches: platform-x86-dell-laptop-fix-kbd_get_state-s-request-value.patch --- 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 index 00000000000..ce53f5576a5 --- /dev/null +++ b/queue-4.15/platform-x86-dell-laptop-fix-kbd_get_state-s-request-value.patch @@ -0,0 +1,40 @@ +From eca39e7f0cdb9bde4003a29149fa695e876c6f73 Mon Sep 17 00:00:00 2001 +From: Laszlo Toth +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 + +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 +Reviewed-by: Pali Rohár +Reviewed-by: Mario Limonciello +Signed-off-by: Andy Shevchenko +Signed-off-by: Greg Kroah-Hartman + +--- + 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) diff --git a/queue-4.15/series b/queue-4.15/series index 8efc78bc911..8c8113a71c4 100644 --- a/queue-4.15/series +++ b/queue-4.15/series @@ -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