Hi Darren, 2015-03-06 11:28 GMT-07:00 Darren Hart <dvhart@xxxxxxxxxxxxx>: > 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@xxxxxxxxx> >> --- >> 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 platform-driver-x86" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html