* HP Compaq 6510b FN keys for brightness not working after boot
@ 2015-03-13 5:33 Aaron Lu
2015-03-27 18:33 ` [PATCH] hp-wmi: limit hotkey enable Kyle Evans
0 siblings, 1 reply; 5+ messages in thread
From: Aaron Lu @ 2015-03-13 5:33 UTC (permalink / raw)
To: Kyle Evans; +Cc: platform-driver-x86, Bertrand Vieille, linux-kernel-org
Hi Kyle,
It seems that your commit:
commit f82bdd0d77b6bf0dea08a1d957ab45d503f328b1
Author: Kyle Evans <kvans32@gmail.com>
Date: Mon Jun 9 12:26:06 2014 -0500
hp-wmi: Enable hotkeys on some systems
has caused some trouble for some HP 6510b users as shown in this bug:
https://bugzilla.kernel.org/show_bug.cgi?id=82451
Can you please take a look at that? Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] hp-wmi: limit hotkey enable
2015-03-13 5:33 HP Compaq 6510b FN keys for brightness not working after boot Aaron Lu
@ 2015-03-27 18:33 ` Kyle Evans
2015-03-27 20:17 ` vieille.bertrand
2015-04-06 15:57 ` Marcus Pollice
0 siblings, 2 replies; 5+ messages in thread
From: Kyle Evans @ 2015-03-27 18:33 UTC (permalink / raw)
To: Aaron Lu, platform-driver-x86, Bertrand Vieille; +Cc: Kyle Evans
Do not attempt to initialize hotkeys if the query returns a value.
Furthermore, do not write initialize magic on systems that do not have
feature query 0xb.
Signed-off-by: Kyle Evans <kvans32@gmail.com>
---
drivers/platform/x86/hp-wmi.c | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c
index 0ab2b37..4a4d6e3 100644
--- a/drivers/platform/x86/hp-wmi.c
+++ b/drivers/platform/x86/hp-wmi.c
@@ -54,6 +54,7 @@ MODULE_ALIAS("wmi:5FB7F034-2C63-45e9-BE91-3D44E2C707E4");
#define HPWMI_HARDWARE_QUERY 0x4
#define HPWMI_WIRELESS_QUERY 0x5
#define HPWMI_BIOS_QUERY 0x9
+#define HPWMI_FEATURE2_QUERY 0xb
#define HPWMI_HOTKEY_QUERY 0xc
#define HPWMI_FEATURE_QUERY 0xd
#define HPWMI_WIRELESS2_QUERY 0x1b
@@ -309,10 +310,18 @@ static int __init hp_wmi_bios_2009_later(void)
static int hp_wmi_enable_hotkeys(void)
{
int ret;
- int query = 0x6e;
+ int query;
+ int value = 0x6e;
- ret = hp_wmi_perform_query(HPWMI_BIOS_QUERY, 1, &query, sizeof(query),
- 0);
+ ret = hp_wmi_perform_query(HPWMI_BIOS_QUERY, 0, &query,
+ 0, sizeof(query));
+
+ if (!ret && !query) {
+ if (!hp_wmi_perform_query(HPWMI_FEATURE2_QUERY, 0, &query,
+ 0, sizeof(query)))
+ ret = hp_wmi_perform_query(HPWMI_BIOS_QUERY, 1, &value,
+ sizeof(value), 0);
+ }
if (ret)
return -EINVAL;
--
1.8.5.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] hp-wmi: limit hotkey enable
2015-03-27 18:33 ` [PATCH] hp-wmi: limit hotkey enable Kyle Evans
@ 2015-03-27 20:17 ` vieille.bertrand
2015-04-06 15:57 ` Marcus Pollice
1 sibling, 0 replies; 5+ messages in thread
From: vieille.bertrand @ 2015-03-27 20:17 UTC (permalink / raw)
To: platform-driver-x86; +Cc: Aaron Lu, Kyle Evans
Patch successfully tested on my HP6510b with 3.19.3 kernel.
Thanks
Bertrand Vieille
----- Mail original -----
De: "Kyle Evans" <kvans32@gmail.com>
À: "Aaron Lu" <aaron.lu@intel.com>, platform-driver-x86@vger.kernel.org, "Bertrand Vieille" <vieille.bertrand@free.Fr>
Cc: "Kyle Evans" <kvans32@gmail.com>
Envoyé: Vendredi 27 Mars 2015 19:33:11
Objet: [PATCH] hp-wmi: limit hotkey enable
Do not attempt to initialize hotkeys if the query returns a value.
Furthermore, do not write initialize magic on systems that do not have
feature query 0xb.
Signed-off-by: Kyle Evans <kvans32@gmail.com>
---
drivers/platform/x86/hp-wmi.c | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c
index 0ab2b37..4a4d6e3 100644
--- a/drivers/platform/x86/hp-wmi.c
+++ b/drivers/platform/x86/hp-wmi.c
@@ -54,6 +54,7 @@ MODULE_ALIAS("wmi:5FB7F034-2C63-45e9-BE91-3D44E2C707E4");
#define HPWMI_HARDWARE_QUERY 0x4
#define HPWMI_WIRELESS_QUERY 0x5
#define HPWMI_BIOS_QUERY 0x9
+#define HPWMI_FEATURE2_QUERY 0xb
#define HPWMI_HOTKEY_QUERY 0xc
#define HPWMI_FEATURE_QUERY 0xd
#define HPWMI_WIRELESS2_QUERY 0x1b
@@ -309,10 +310,18 @@ static int __init hp_wmi_bios_2009_later(void)
static int hp_wmi_enable_hotkeys(void)
{
int ret;
- int query = 0x6e;
+ int query;
+ int value = 0x6e;
- ret = hp_wmi_perform_query(HPWMI_BIOS_QUERY, 1, &query, sizeof(query),
- 0);
+ ret = hp_wmi_perform_query(HPWMI_BIOS_QUERY, 0, &query,
+ 0, sizeof(query));
+
+ if (!ret && !query) {
+ if (!hp_wmi_perform_query(HPWMI_FEATURE2_QUERY, 0, &query,
+ 0, sizeof(query)))
+ ret = hp_wmi_perform_query(HPWMI_BIOS_QUERY, 1, &value,
+ sizeof(value), 0);
+ }
if (ret)
return -EINVAL;
--
1.8.5.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] hp-wmi: limit hotkey enable
2015-03-27 18:33 ` [PATCH] hp-wmi: limit hotkey enable Kyle Evans
2015-03-27 20:17 ` vieille.bertrand
@ 2015-04-06 15:57 ` Marcus Pollice
[not found] ` <13CD30DA-0450-4879-89ED-9B5C6D434652@gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: Marcus Pollice @ 2015-04-06 15:57 UTC (permalink / raw)
To: Kyle Evans, Aaron Lu, platform-driver-x86, Bertrand Vieille
Patch tested successfully on a HP Compaq nx6310 with kernel 3.19, that
had the same issue introduced by the same commit.
I wonder what I did wrong when reporting the issue to this list almost 3
months prior to Bertrand. I went through the same bisection steps and
since he had another issue as well it would have saved him some time.
I'd like to know how I can improve reporting such issues in the future.
Marcus Pollice
On 27.03.2015 19:33, Kyle Evans wrote:
> Do not attempt to initialize hotkeys if the query returns a value.
> Furthermore, do not write initialize magic on systems that do not have
> feature query 0xb.
>
> Signed-off-by: Kyle Evans <kvans32@gmail.com>
> ---
> drivers/platform/x86/hp-wmi.c | 15 ++++++++++++---
> 1 file changed, 12 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c
> index 0ab2b37..4a4d6e3 100644
> --- a/drivers/platform/x86/hp-wmi.c
> +++ b/drivers/platform/x86/hp-wmi.c
> @@ -54,6 +54,7 @@ MODULE_ALIAS("wmi:5FB7F034-2C63-45e9-BE91-3D44E2C707E4");
> #define HPWMI_HARDWARE_QUERY 0x4
> #define HPWMI_WIRELESS_QUERY 0x5
> #define HPWMI_BIOS_QUERY 0x9
> +#define HPWMI_FEATURE2_QUERY 0xb
> #define HPWMI_HOTKEY_QUERY 0xc
> #define HPWMI_FEATURE_QUERY 0xd
> #define HPWMI_WIRELESS2_QUERY 0x1b
> @@ -309,10 +310,18 @@ static int __init hp_wmi_bios_2009_later(void)
> static int hp_wmi_enable_hotkeys(void)
> {
> int ret;
> - int query = 0x6e;
> + int query;
> + int value = 0x6e;
>
> - ret = hp_wmi_perform_query(HPWMI_BIOS_QUERY, 1, &query, sizeof(query),
> - 0);
> + ret = hp_wmi_perform_query(HPWMI_BIOS_QUERY, 0, &query,
> + 0, sizeof(query));
> +
> + if (!ret && !query) {
> + if (!hp_wmi_perform_query(HPWMI_FEATURE2_QUERY, 0, &query,
> + 0, sizeof(query)))
> + ret = hp_wmi_perform_query(HPWMI_BIOS_QUERY, 1, &value,
> + sizeof(value), 0);
> + }
>
> if (ret)
> return -EINVAL;
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] hp-wmi: limit hotkey enable
[not found] ` <13CD30DA-0450-4879-89ED-9B5C6D434652@gmail.com>
@ 2015-06-11 22:08 ` Marcus Pollice
0 siblings, 0 replies; 5+ messages in thread
From: Marcus Pollice @ 2015-06-11 22:08 UTC (permalink / raw)
To: Kyle Evans, platform-driver-x86
Out of curiosity, when will this patch be mainlined?
Marcus Pollice
On 07.04.2015 20:37, Kyle Evans wrote:
> Did you CC the author, in this case me. If you did I am sorry for not
> catching it. If not, that would be the ticket.
>
> On April 6, 2015 11:57:05 AM EDT, Marcus Pollice
> <marcus.pollice@gmail.com> wrote:
>
> Patch tested successfully on a HP Compaq nx6310 with kernel 3.19, that
> had the same issue introduced by the same commit.
>
> I wonder what I did wrong when reporting the issue to this list almost 3
> months prior to Bertrand. I went through the same bisection steps and
> since he had another issue as well it would have saved him some time.
> I'd like to know how I can improve reporting such issues in the future.
>
> Marcus Pollice
>
> On 27.03.2015 19:33, Kyle Evans wrote:
>
> Do not attempt to initialize hotkeys if the query returns a
> value. Furthermore, do not write initialize magic on systems
> that do not have feature query 0xb. Signed-off-by: Kyle Evans
> <kvans32@gmail.com> --- drivers/platform/x86/hp-wmi.c | 15
> ++++++++++++--- 1 file changed, 12 insertions(+), 3
> deletions(-) diff --git a/drivers/platform/x86/hp-wmi.c
> b/drivers/platform/x86/hp-wmi.c index 0ab2b37..4a4d6e3 100644
> --- a/drivers/platform/x86/hp-wmi.c +++
> b/drivers/platform/x86/hp-wmi.c @@ -54,6 +54,7 @@
> MODULE_ALIAS("wmi:5FB7F034-2C63-45e9-BE91-3D44E2C707E4");
> #define HPWMI_HARDWARE_QUERY 0x4 #define HPWMI_WIRELESS_QUERY
> 0x5 #define HPWMI_BIOS_QUERY 0x9 +#define HPWMI_FEATURE2_QUERY
> 0xb #define HPWMI_HOTKEY_QUERY 0xc #define HPWMI_FEATURE_QUERY
> 0xd #define HPWMI_WIRELESS2_QUERY 0x1b @@ -309,10 +310,18 @@
> static int __init hp_wmi_bios_2009_later(void) static int
> hp_wmi_enable_hotkeys(void) { int ret; - int query = 0x6e; +
> int query; + int value = 0x6e; - ret =
> hp_wmi_perform_query(HPWMI_BIOS_QUERY, 1, &query,
> sizeof(query), - 0); + ret =
> hp_wmi_perform_query(HPWMI_BIOS_QUERY, 0, &query, + 0,
> sizeof(query)); + + if (!ret && !query) { + if
> (!hp_wmi_perform_query(HPWMI_FEATURE2_QUERY, 0, &query, + 0,
> sizeof(query))) + ret = hp_wmi_perform_query(HPWMI_BIOS_QUERY,
> 1, &value, + sizeof(value), 0); + } if (ret) return -EINVAL;
>
>
>
> --
> Sent from my Android device with K-9 Mail.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-06-11 22:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 5:33 HP Compaq 6510b FN keys for brightness not working after boot Aaron Lu
2015-03-27 18:33 ` [PATCH] hp-wmi: limit hotkey enable Kyle Evans
2015-03-27 20:17 ` vieille.bertrand
2015-04-06 15:57 ` Marcus Pollice
[not found] ` <13CD30DA-0450-4879-89ED-9B5C6D434652@gmail.com>
2015-06-11 22:08 ` Marcus Pollice
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.