[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGdLNWHs6iaSCuGHZg_XB=G4pJ9KiW=4-VH1FezmoOuPYRxmhQ@mail.gmail.com>
Date: Fri, 6 Mar 2015 11:52:41 -0700
From: Azael Avalos <coproscefalo@...il.com>
To: Darren Hart <dvhart@...radead.org>
Cc: "platform-driver-x86@...r.kernel.org"
<platform-driver-x86@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/3] toshiba_acpi: Fix the enabling of the Special Functions
Hi Darren,
2015-03-06 11:28 GMT-07:00 Darren Hart <dvhart@...radead.org>:
> On Thu, Feb 26, 2015 at 10:57:14AM -0700, Azael Avalos wrote:
>> Some Toshiba laptops with the "Special Functions" feature enabled
>> fail to properly enable such feature unless a specific value is
>> used to enable the hotkey events.
>
> The specific value being... HCI_HOTKEY_ENABLE_SPECIAL? And we do this for ALL
> systems that support special keys right (and have them enabled)? Not just the
> ones that fail to properly enable them?
For all of them supporting "special functions" and have them enabled.
>
> The above makes it sound like a work around, but nothing in the implementation
> suggests that to me. Is this a workaround?
This is more a fix than a workaround, on the laptops I tested this value
is needed in order to properly activate the "special functions", if not,
they will behave like "normal" even if the "special functions"are enabled.
Tho' I'm not sure if it's only the models I tested or all of them, as I don't
have that much hardware to test.
>
>> This patch adds a new function called "*_enable_special_functions",
>> that simply makes a call to the HCI_HOTKEY_EVENT call, but this time
>> we are using a different parameter to make the "Special Functions"
>> mode work as expected.
>>
>> Signed-off-by: Azael Avalos <coproscefalo@...il.com>
>> ---
>> drivers/platform/x86/toshiba_acpi.c | 20 ++++++++++++++++++++
>> 1 file changed, 20 insertions(+)
>>
>> diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
>> index 10e0773..09c6a2f 100644
>> --- a/drivers/platform/x86/toshiba_acpi.c
>> +++ b/drivers/platform/x86/toshiba_acpi.c
>> @@ -2336,6 +2336,20 @@ static int toshiba_acpi_enable_hotkeys(struct toshiba_acpi_dev *dev)
>> return 0;
>> }
>>
>> +static void toshiba_acpi_enable_special_functions(struct toshiba_acpi_dev *dev)
>> +{
>> + u32 result;
>> +
>> + /*
>> + * Re-activate the hotkeys, but this time, we are using the
>> + * "Special Functions" mode.
>> + */
>> + result = hci_write1(dev, HCI_HOTKEY_EVENT,
>> + HCI_HOTKEY_ENABLE_SPECIAL);
>
> One line.
Somehow I thought this was gonna pass the 80 chars limit, seems not.
Will change in v2.
>
>
> --
> Darren Hart
> Intel Open Source Technology Center
Cheers
Azael
--
-- El mundo apesta y vosotros apestais tambien --
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists