Re: Dell Vostro V131 hotkeys revisited

2015-07-22 Thread Michał Kępień
Now as for actually simulating a keypress, it can be programmed using the following calling interface (on receiving the e025 WMI notification). To actually simulate the keypress: Arg1=0x41 Arg2 Byte [1:0]: Scan code to simulate Byte [3:2] * Bit0 - L Alt * Bit1 - R Alt * Bit2 - L

[PATCH 1/4] toshiba_acpi: Change *available functions return type

2015-07-22 Thread Azael Avalos
This patch changes the *available functions return type from int to void. The checks for support of their respective features are done inside such functions and there was no need to return anything as we can flag the queried feature as supported inside these functions. The code was adapted

[PATCH 0/4] toshiba_acpi: Refactor *{get, set} and *available functions

2015-07-22 Thread Azael Avalos
These patches changes the *{get, set} and available *functions, changes the printed messages of the supported features and bumps the driver version to 0.23. Azael Avalos (4): toshiba_acpi: Change *available functions return type toshiba_acpi: Remove *not supported feature prints

[PATCH 1/1] toshiba_acpi: Add set_fan_status function

2015-07-22 Thread Azael Avalos
This patch adds a new function named set_fan_status to complement its get* counterpart, as well as to avoid code duplication between fan_proc_write and fan_store. Signed-off-by: Azael Avalos coproscef...@gmail.com --- drivers/platform/x86/toshiba_acpi.c | 55 -

[PATCH 2/4] toshiba_acpi: Remove *not supported feature prints

2015-07-22 Thread Azael Avalos
Currently the driver prints *not supported if any of the features queried are in fact not supported, let us print the available features instead. This patch removes all instances pr_info printing *not supported, and add a new function called print_supported_features, which will print the

[PATCH] toshiba_acpi: Change some variables to avoid warnings the ninja-check script

2015-07-22 Thread Azael Avalos
This patch changes some variables to avoid warnins in the ninja-check script. We are basically moving some variables inside the conditionals were such variables are being used, and we are checking the returned values of some others. Signed-off-by: Azael Avalos coproscef...@gmail.com ---

[PATCH 4/4] toshiba_acpi: Bump driver version to 0.23

2015-07-22 Thread Azael Avalos
Given that some features were added (/dev/toshiba_acpi device), some clean-ups and minor changes, bump the driver version to 0.23. Signed-off-by: Azael Avalos coproscef...@gmail.com --- drivers/platform/x86/toshiba_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/4] toshiba_acpi: Refactor *{get, set} functions return value

2015-07-22 Thread Azael Avalos
This patch changes the default return value of the driver *{get, set} functions from 0 (success) to -EIO, since the driver default error value is -EIO. All the functions now check for TOS_FAILURE, TOS_NOT_SUPPORTED and TOS_SUCCESS. On TOS_FAILURE a pr_err message is printed informing the user of

[PATCH 1/1] toshiba_acpi: Reorder toshiba_acpi_alt_keymap entries

2015-07-22 Thread Azael Avalos
This patch simply reorders the entries found in the new keymap by ascending order, this is simply a cosmetic change, no functionality was modified. Signed-off-by: Azael Avalos coproscef...@gmail.com --- drivers/platform/x86/toshiba_acpi.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH 1/1] toshiba_acpi: Remove unused wireless defines

2015-07-22 Thread Azael Avalos
Commit 2b74103547b4 (toshiba_acpi: Remove bluetooth rfkill code) removed bluetooth related code, however, the wireless defines were not removed and are being unused. This patch simply removes those defines as there is no code using them. Signed-off-by: Azael Avalos coproscef...@gmail.com ---

Re: [PATCH] toshiba_acpi: Avoid registering input device on WMI event laptops

2015-07-22 Thread Darren Hart
On Mon, Jul 20, 2015 at 04:49:51PM -0600, Azael Avalos wrote: Hi Darren, 2015-07-20 15:55 GMT-06:00 Darren Hart dvh...@infradead.org: On Thu, Jul 16, 2015 at 05:38:57PM -0600, Azael Avalos wrote: Commit f11f999e9890 (toshiba_acpi: Refuse to load on machines with buggy INFO

[PATCH v2.1 19/22] fjes: update_zone_task

2015-07-22 Thread Taku Izumi
This patch adds update_zone_task. Zoning information can be changed by user. This task is used to monitor if zoning information is changed or not. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- drivers/net/fjes/fjes_hw.c | 171 +++

[PATCH v2.1 09/22] fjes: raise_intr_rxdata_task

2015-07-22 Thread Taku Izumi
This patch add raise_intr_rxdata_task. Extended Socket Network Device is shared memory based, so someone's transmission denotes other's reception. In order to notify receivers, sender has to raise interruption of receivers. raise_intr_rxdata_task does this work. Signed-off-by: Taku Izumi

[PATCH v2.1 15/22] fjes: net_device_ops.ndo_vlan_rx_add/kill_vid

2015-07-22 Thread Taku Izumi
This patch adds net_device_ops.ndo_vlan_rx_add_vid and net_device_ops.ndo_vlan_rx_kill_vid callback. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- drivers/net/fjes/fjes_hw.c | 27 +++ drivers/net/fjes/fjes_hw.h | 2 ++ drivers/net/fjes/fjes_main.c | 40

[PATCH v2.1 16/22] fjes: interrupt_watch_task

2015-07-22 Thread Taku Izumi
This patch adds interrupt_watch_task. This task is used to prevent delay of interrupts. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- drivers/net/fjes/fjes.h | 5 + drivers/net/fjes/fjes_main.c | 40 +++- 2 files changed, 44 insertions(+),

Re: [PATCH] toshiba_acpi: Avoid registering input device on WMI event laptops

2015-07-22 Thread Azael Avalos
Hi Darren, 2015-07-22 14:54 GMT-06:00 Darren Hart dvh...@infradead.org: On Mon, Jul 20, 2015 at 04:49:51PM -0600, Azael Avalos wrote: Hi Darren, 2015-07-20 15:55 GMT-06:00 Darren Hart dvh...@infradead.org: On Thu, Jul 16, 2015 at 05:38:57PM -0600, Azael Avalos wrote: Commit f11f999e9890

[PATCH v2] toshiba_acpi: Transflective backlight updates

2015-07-22 Thread Azael Avalos
This patch changes the tr function second parameter from bool to u32, to be on par with the rest of the TCI functions of the driver, and the code was updated accordingly. Also, the check for translective support was moved to the *add function, as the {__get, set}_lcd_brightness functions make use

[PATCH v2] toshiba_acpi: Add /dev/toshiba_acpi device

2015-07-22 Thread Azael Avalos
There were previous attempts to merge the toshiba SMM module to the toshiba_acpi one, they were trying to imitate what the old toshiba module does, however, some models (TOS1900 devices) come with a crippled implementation and do not provide all the features a genuine Toshiba BIOS does. This

[PATCH v2] toshiba_acpi: Avoid registering input device on WMI event laptops

2015-07-22 Thread Azael Avalos
Commit f11f999e9890 (toshiba_acpi: Refuse to load on machines with buggy INFO implementations) denied loading on laptops with a WMI Event GUID given that such laptops manage the hotkeys via that interface, however, such laptops have a working Toshiba Configuration Interface (TCI), and thus, such

[PATCH v2] toshiba_acpi: Adapt /proc/acpi/toshiba/keys to TOS1900 devices

2015-07-22 Thread Azael Avalos
Since the introduction of TOS1900 devices support to the driver, the keys entry under the proc directory was broken, given that it only handled TOS620X devices accordingly. This patch adapts the code to show the hotkey values of TOS1900 devices too, and in case some programs are still using that

[PATCH v2.1 01/22] fjes: Introduce FUJITSU Extended Socket Network Device driver

2015-07-22 Thread Taku Izumi
This patch adds the basic code of FUJITSU Extended Socket Network Device driver. When PNP0C02 is found in ACPI DSDT, it evaluates _STR to check if PNP0C02 is for Extended Socket device driver and retrieves ACPI resource information. Then creates platform_device. Signed-off-by: Taku Izumi

[PATCH v2.1 02/22] fjes: Hardware initialization routine

2015-07-22 Thread Taku Izumi
This patch adds hardware initialization routine to be invoked at driver's .probe routine. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- drivers/net/fjes/Makefile| 2 +- drivers/net/fjes/fjes.h | 2 +- drivers/net/fjes/fjes_hw.c | 296

[PATCH v2.1 00/22] FUJITSU Extended Socket network device driver

2015-07-22 Thread Taku Izumi
This patchsets adds FUJITSU Extended Socket network device driver. Extended Socket network device is a shared memory based high-speed network interface between Extended Partitions of PRIMEQUEST 2000 E2 series. You can get some information about Extended Partition and Extended Socket by referring

[PATCH v2.1 22/22] fjes: ethtool support

2015-07-22 Thread Taku Izumi
This patch adds implementation for ethtool support. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- drivers/net/fjes/Makefile | 2 +- drivers/net/fjes/fjes.h | 2 + drivers/net/fjes/fjes_ethtool.c | 135