lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAGdLNWE_o1OJVfh-p77UDsdd3ZOYPZ0wn-oLo0599xZdcYc6kA@mail.gmail.com>
Date:	Tue, 22 Sep 2015 10:08:47 -0600
From:	Azael Avalos <coproscefalo@...il.com>
To:	Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc:	Darren Hart <dvhart@...radead.org>,
	"platform-driver-x86@...r.kernel.org" 
	<platform-driver-x86@...r.kernel.org>,
	lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] platform/x86: Toshiba WMI Hotkey Driver

Hi there

2015-09-19 10:48 GMT-06:00 Dmitry Torokhov <dmitry.torokhov@...il.com>:
> On Fri, Sep 18, 2015 at 2:59 PM, Darren Hart <dvhart@...radead.org> wrote:
>> On Wed, Sep 09, 2015 at 11:30:10AM -0600, Azael Avalos wrote:
>>> Toshiba laptops that feature WMI events for hotkeys were left unsupported
>>> by the toshiba_acpi driver, however, commit a88bc06e5aec ("toshiba_acpi:
>>> Avoid registering input device on WMI event laptops") added hardware
>>> support for such laptops, but the hotkeys are not handled there.
>>>
>>> This driver adds support for hotkey monitoring on certain Toshiba laptops
>>> that manage the hotkeys via WMI events instead of the Toshiba
>>> Configuration Interface (TCI).
>>>
>>> The toshiba_acpi driver and this one can co-exist, as this only takes
>>> care of hotkeys, while the propper takes care of hardware related stuff.
>>>
>>> Currently the driver is under the EXPERIMENTAL flag, as the keymap
>>> and the notify function are incomplete (due to lack of hardware to test).
>>>
>>> Signed-off-by: Azael Avalos <coproscefalo@...il.com>
>>
>> +Dmitry - Are you interested in being Cc'd on new users of input outside
>> drivers/input ?
>
> Yes, please.
>
>>
>>> ---
>>>  MAINTAINERS                        |   6 ++
>>>  drivers/platform/x86/Kconfig       |  18 +++++
>>>  drivers/platform/x86/Makefile      |   1 +
>>>  drivers/platform/x86/toshiba-wmi.c | 138 +++++++++++++++++++++++++++++++++++++
>>>  4 files changed, 163 insertions(+)
>>>  create mode 100644 drivers/platform/x86/toshiba-wmi.c
>>>
>>> diff --git a/MAINTAINERS b/MAINTAINERS
>>> index 884d398..07f4446 100644
>>> --- a/MAINTAINERS
>>> +++ b/MAINTAINERS
>>> @@ -10318,6 +10318,12 @@ L:   platform-driver-x86@...r.kernel.org
>>>  S:   Maintained
>>>  F:   drivers/platform/x86/toshiba_haps.c
>>>
>>> +TOSHIBA WMI HOTKEYS DRIVER
>>> +M:   Azael Avalos <coproscefalo@...il.com>
>>> +L:   platform-driver-x86@...r.kernel.org
>>> +S:   Maintained
>>> +F:   drivers/platform/x86/toshiba-wmi.c
>>> +
>>>  TOSHIBA SMM DRIVER
>>>  M:   Jonathan Buzzard <jonathan@...zard.org.uk>
>>>  W:   http://www.buzzard.org.uk/toshiba/
>>> diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
>>> index c69bb70..9ae1e89 100644
>>> --- a/drivers/platform/x86/Kconfig
>>> +++ b/drivers/platform/x86/Kconfig
>>> @@ -700,6 +700,24 @@ config TOSHIBA_HAPS
>>>         If you have a recent Toshiba laptop with a built-in accelerometer
>>>         device, say Y.
>>>
>>> +config TOSHIBA_WMI
>>> +     tristate "Toshiba WMI Hotkeys Driver (EXPERIMENTAL)"
>>> +     default n
>>> +     depends on ACPI_WMI
>>> +     depends on INPUT
>>> +     select INPUT_SPARSEKMAP
>>> +     ---help---
>>> +       This driver adds hotkey monitoring support to some Toshiba models
>>> +       that manage the hotkeys via WMI events.
>>> +
>>> +       WARNING: This driver is incomplete as it lacks a propper keymap and the
>
> s/propper/proper/
>
>>> +       *notify function only prints the ACPI event type value. Be warned that
>>> +       you will need to provide some information if you have a Toshiba model
>>> +       with WMI event hotkeys and want to help with the develpment of this
>>> +       driver.
>>> +
>>> +       If you have a WMI-based hotkeys Toshiba laptop, say Y or M here.
>>> +
>>>  config ACPI_CMPC
>>>       tristate "CMPC Laptop Extras"
>>>       depends on X86 && ACPI
>>> diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
>>> index ada5128..8f077cb 100644
>>> --- a/drivers/platform/x86/Makefile
>>> +++ b/drivers/platform/x86/Makefile
>>> @@ -40,6 +40,7 @@ obj-$(CONFIG_ACPI_TOSHIBA)  += toshiba_acpi.o
>>>
>>>  obj-$(CONFIG_TOSHIBA_BT_RFKILL)      += toshiba_bluetooth.o
>>>  obj-$(CONFIG_TOSHIBA_HAPS)   += toshiba_haps.o
>>> +obj-$(CONFIG_TOSHIBA_HAPS)   += toshiba-wmi.o
>>>  obj-$(CONFIG_INTEL_SCU_IPC)  += intel_scu_ipc.o
>>>  obj-$(CONFIG_INTEL_SCU_IPC_UTIL) += intel_scu_ipcutil.o
>>>  obj-$(CONFIG_INTEL_MFLD_THERMAL) += intel_mid_thermal.o
>>> diff --git a/drivers/platform/x86/toshiba-wmi.c b/drivers/platform/x86/toshiba-wmi.c
>>> new file mode 100644
>>> index 0000000..8cf62a1
>>> --- /dev/null
>>> +++ b/drivers/platform/x86/toshiba-wmi.c
>>> @@ -0,0 +1,138 @@
>>> +/*
>>> + * toshiba_wmi.c - Toshiba WMI Hotkey Driver
>>> + *
>>> + * Copyright (C) 2015 Azael Avalos <coproscefalo@...il.com>
>>> + *
>>> + * This program is free software; you can redistribute it and/or modify
>>> + * it under the terms of the GNU General Public License as published by
>>> + * the Free Software Foundation; either version 2 of the License, or
>>> + * (at your option) any later version.
>>> + *
>>> + * This program is distributed in the hope that it will be useful,
>>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>>> + * GNU General Public License for more details.
>>> + *
>>> + */
>>> +
>>> +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
>>> +
>>> +#include <linux/kernel.h>
>>> +#include <linux/module.h>
>>> +#include <linux/init.h>
>>> +#include <linux/types.h>
>>> +#include <linux/acpi.h>
>>> +#include <linux/input.h>
>>> +#include <linux/input/sparse-keymap.h>
>>> +
>>> +MODULE_AUTHOR("Azael Avalos");
>>> +MODULE_DESCRIPTION("Toshiba WMI Hotkey Driver");
>>> +MODULE_LICENSE("GPL");
>>> +
>>> +#define TOSHIBA_WMI_EVENT_GUID       "59142400-C6A3-40FA-BADB-8A2652834100"
>>> +
>>> +MODULE_ALIAS("wmi:"TOSHIBA_WMI_EVENT_GUID);
>>> +
>>> +struct input_dev *toshiba_wmi_input_dev;
>
> static?

Already done in v2 :-)

I'll wait for more comments on this and send a v3 correcting the typo
and whatever comes up.

>
> Thanks.
>
> --
> Dmitry


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

Powered by Openwall GNU/*/Linux Powered by OpenVZ