* [PATCH v2] platform/x86: dell-laptop: fix kbd_get_state's request value
@ 2018-02-13 19:27 Laszlo Toth
2018-02-13 19:39 ` Mario.Limonciello
0 siblings, 1 reply; 2+ messages in thread
From: Laszlo Toth @ 2018-02-13 19:27 UTC (permalink / raw)
To: Matthew Garrett, Pali Rohár, Darren Hart, Andy Shevchenko,
platform-driver-x86, Mario Limonciello
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.
Signed-off-by: Laszlo Toth <laszlth@gmail.com>
---
Changes in v2:
- split the fix and the function merge part
drivers/platform/x86/dell-laptop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index 2a68f59..a37cff9 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -1279,7 +1279,7 @@ static int kbd_get_state(struct kbd_state *state)
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)
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* RE: [PATCH v2] platform/x86: dell-laptop: fix kbd_get_state's request value
2018-02-13 19:27 [PATCH v2] platform/x86: dell-laptop: fix kbd_get_state's request value Laszlo Toth
@ 2018-02-13 19:39 ` Mario.Limonciello
0 siblings, 0 replies; 2+ messages in thread
From: Mario.Limonciello @ 2018-02-13 19:39 UTC (permalink / raw)
To: laszlth, mjg59, pali.rohar, dvhart, andy, platform-driver-x86
> -----Original Message-----
> From: platform-driver-x86-owner@vger.kernel.org [mailto:platform-driver-x86-
> owner@vger.kernel.org] On Behalf Of Laszlo Toth
> Sent: Tuesday, February 13, 2018 1:28 PM
> To: Matthew Garrett <mjg59@srcf.ucam.org>; Pali Rohár <pali.rohar@gmail.com>;
> Darren Hart <dvhart@infradead.org>; Andy Shevchenko <andy@infradead.org>;
> platform-driver-x86@vger.kernel.org; Limonciello, Mario
> <Mario_Limonciello@Dell.com>
> Subject: [PATCH v2] platform/x86: dell-laptop: fix kbd_get_state's request value
>
> 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.
>
> Signed-off-by: Laszlo Toth <laszlth@gmail.com>
> ---
> Changes in v2:
> - split the fix and the function merge part
>
> drivers/platform/x86/dell-laptop.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
> index 2a68f59..a37cff9 100644
> --- a/drivers/platform/x86/dell-laptop.c
> +++ b/drivers/platform/x86/dell-laptop.c
> @@ -1279,7 +1279,7 @@ static int kbd_get_state(struct kbd_state *state)
> 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)
> --
> 2.7.4
This should also CC stable and
Fixes 9862b43624a5450a097cc4122732857b869dbbca
Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-13 19:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-13 19:27 [PATCH v2] platform/x86: dell-laptop: fix kbd_get_state's request value Laszlo Toth
2018-02-13 19:39 ` Mario.Limonciello
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox