Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1385275 > unrolled thread

[PATCH] toshiba_acpi: Fix regression caused by hotkey enabling value

Started byAzael Avalos <coproscefalo@gmail.com>
First post2016-04-22 17:30 +0200
Last post2016-04-25 19:50 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] toshiba_acpi: Fix regression caused by hotkey enabling value Azael Avalos <coproscefalo@gmail.com> - 2016-04-22 17:30 +0200
    Re: [PATCH] toshiba_acpi: Fix regression caused by hotkey enabling  value Darren Hart <dvhart@infradead.org> - 2016-04-25 19:40 +0200
      Re: [PATCH] toshiba_acpi: Fix regression caused by hotkey enabling value Azael Avalos <coproscefalo@gmail.com> - 2016-04-25 19:50 +0200

#1385275 — [PATCH] toshiba_acpi: Fix regression caused by hotkey enabling value

FromAzael Avalos <coproscefalo@gmail.com>
Date2016-04-22 17:30 +0200
Subject[PATCH] toshiba_acpi: Fix regression caused by hotkey enabling value
Message-ID<rqLbQ-419-17@gated-at.bofh.it>
Commit 52cbae0127ad ("toshiba_acpi: Change default Hotkey enabling value")
changed the hotkeys enabling value, as it was the same value Windows uses,
however, it turns out that the value tells the EC that the driver will now
take care of the hardware events like the physical RFKill switch or the
pointing device toggle button.

This patch reverts such commit by changing the default hotkey enabling
value to 0x09, which enables hotkey events only, making the hardware
buttons working again.

Fixes bugs 113331 and 114941.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
---
 drivers/platform/x86/toshiba_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
index df1f1a7..01e12d2 100644
--- a/drivers/platform/x86/toshiba_acpi.c
+++ b/drivers/platform/x86/toshiba_acpi.c
@@ -135,7 +135,7 @@ MODULE_LICENSE("GPL");
 /* Field definitions */
 #define HCI_ACCEL_MASK			0x7fff
 #define HCI_HOTKEY_DISABLE		0x0b
-#define HCI_HOTKEY_ENABLE		0x01
+#define HCI_HOTKEY_ENABLE		0x09
 #define HCI_HOTKEY_SPECIAL_FUNCTIONS	0x10
 #define HCI_LCD_BRIGHTNESS_BITS		3
 #define HCI_LCD_BRIGHTNESS_SHIFT	(16-HCI_LCD_BRIGHTNESS_BITS)
-- 
2.8.1

[toc] | [next] | [standalone]


#1386695 — Re: [PATCH] toshiba_acpi: Fix regression caused by hotkey enabling value

FromDarren Hart <dvhart@infradead.org>
Date2016-04-25 19:40 +0200
SubjectRe: [PATCH] toshiba_acpi: Fix regression caused by hotkey enabling value
Message-ID<rrSEj-1jR-21@gated-at.bofh.it>
In reply to#1385275
On Fri, Apr 22, 2016 at 09:29:36AM -0600, Azael Avalos wrote:
> Commit 52cbae0127ad ("toshiba_acpi: Change default Hotkey enabling value")
> changed the hotkeys enabling value, as it was the same value Windows uses,
> however, it turns out that the value tells the EC that the driver will now
> take care of the hardware events like the physical RFKill switch or the
> pointing device toggle button.
> 
> This patch reverts such commit by changing the default hotkey enabling
> value to 0x09, which enables hotkey events only, making the hardware
> buttons working again.
> 
> Fixes bugs 113331 and 114941.
> 
> Signed-off-by: Azael Avalos <coproscefalo@gmail.com>

I wasn't planning on another pull to Linus at r5, but since this is a
regression, I've queued it for 4.6-rc6. It will liketly be the only patch in the
pull request. If Linus objects, we'll push it to 4.7. Either way, I'll tag it
for stable.

> ---
>  drivers/platform/x86/toshiba_acpi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
> index df1f1a7..01e12d2 100644
> --- a/drivers/platform/x86/toshiba_acpi.c
> +++ b/drivers/platform/x86/toshiba_acpi.c
> @@ -135,7 +135,7 @@ MODULE_LICENSE("GPL");
>  /* Field definitions */
>  #define HCI_ACCEL_MASK			0x7fff
>  #define HCI_HOTKEY_DISABLE		0x0b
> -#define HCI_HOTKEY_ENABLE		0x01
> +#define HCI_HOTKEY_ENABLE		0x09
>  #define HCI_HOTKEY_SPECIAL_FUNCTIONS	0x10
>  #define HCI_LCD_BRIGHTNESS_BITS		3
>  #define HCI_LCD_BRIGHTNESS_SHIFT	(16-HCI_LCD_BRIGHTNESS_BITS)
> -- 
> 2.8.1
> 
> 

-- 
Darren Hart
Intel Open Source Technology Center

[toc] | [prev] | [next] | [standalone]


#1386709

FromAzael Avalos <coproscefalo@gmail.com>
Date2016-04-25 19:50 +0200
Message-ID<rrSNZ-1nE-15@gated-at.bofh.it>
In reply to#1386695
Hi Darren,


No problem with me, ohh and thanks, I forgot to include stable.


Cheers
Azael


2016-04-25 11:31 GMT-06:00 Darren Hart <dvhart@infradead.org>:
> On Fri, Apr 22, 2016 at 09:29:36AM -0600, Azael Avalos wrote:
>> Commit 52cbae0127ad ("toshiba_acpi: Change default Hotkey enabling value")
>> changed the hotkeys enabling value, as it was the same value Windows uses,
>> however, it turns out that the value tells the EC that the driver will now
>> take care of the hardware events like the physical RFKill switch or the
>> pointing device toggle button.
>>
>> This patch reverts such commit by changing the default hotkey enabling
>> value to 0x09, which enables hotkey events only, making the hardware
>> buttons working again.
>>
>> Fixes bugs 113331 and 114941.
>>
>> Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
>
> I wasn't planning on another pull to Linus at r5, but since this is a
> regression, I've queued it for 4.6-rc6. It will liketly be the only patch in the
> pull request. If Linus objects, we'll push it to 4.7. Either way, I'll tag it
> for stable.
>
>> ---
>>  drivers/platform/x86/toshiba_acpi.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
>> index df1f1a7..01e12d2 100644
>> --- a/drivers/platform/x86/toshiba_acpi.c
>> +++ b/drivers/platform/x86/toshiba_acpi.c
>> @@ -135,7 +135,7 @@ MODULE_LICENSE("GPL");
>>  /* Field definitions */
>>  #define HCI_ACCEL_MASK                       0x7fff
>>  #define HCI_HOTKEY_DISABLE           0x0b
>> -#define HCI_HOTKEY_ENABLE            0x01
>> +#define HCI_HOTKEY_ENABLE            0x09
>>  #define HCI_HOTKEY_SPECIAL_FUNCTIONS 0x10
>>  #define HCI_LCD_BRIGHTNESS_BITS              3
>>  #define HCI_LCD_BRIGHTNESS_SHIFT     (16-HCI_LCD_BRIGHTNESS_BITS)
>> --
>> 2.8.1
>>
>>
>
> --
> Darren Hart
> Intel Open Source Technology Center



-- 
-- El mundo apesta y vosotros apestais tambien --

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web