[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 --- drivers/pl

[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 --- drivers/platform/x86/toshiba_acpi.c | 55 +++

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

2015-07-22 Thread Azael Avalos
*accelerometer_supported. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 138 +++- 1 file changed, 59 insertions(+), 79 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 32d6d16..789a17c

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

2015-07-22 Thread Azael Avalos
es", which will print the available laptop features. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 69 +++-- 1 file changed, 44 insertions(+), 25 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x8

[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 --- drivers/platform/x86/toshiba_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86

[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 --- drivers/platform/x86/toshiba_acpi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

[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 --- drivers/platform/x86

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

2015-07-22 Thread Azael Avalos
functions return one instead of zero to indicate success. As a special case, the LED functions only check for TOS_FAILURE on *set with their default return value as LED_OFF, and check for TOS_FAILURE and TOS_SUCCESS on *get. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 339

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

2015-07-22 Thread Azael Avalos
thus, such commit denied several supported features. This patch avoids registering the input device and ignores all hotkey events on laptops with such WMI Event GUID, making the supported features found in those laptops to work. Signed-off-by: Azael Avalos --- Changes since v1: - Minor typ

[PATCH v2] toshiba_acpi: Transflective backlight updates

2015-07-22 Thread Azael Avalos
of it. Signed-off-by: Azael Avalos --- Changes since v1: - Minor typographical corrections in patch description drivers/platform/x86/toshiba_acpi.c | 30 +++--- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers

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

2015-07-22 Thread Azael Avalos
till using that interface, hotkeys reporting should now work on these devices. Signed-off-by: Azael Avalos --- Changes since v1: - No changes were made, this is simply a resend drivers/platform/x86/toshiba_acpi.c | 56 + 1 file changed, 20 insertions(+), 36

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

2015-07-22 Thread Azael Avalos
hiba_acpi paths and command, however, it is strongly reccomended to use the new IOCTL for any SCI command to avoid any buggy BIOS. Signed-off-by: Azael Avalos --- Changes since v1: - Expanded patch comment a bit Documentation/ioctl/ioctl-number.txt | 2 +- d

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 : > 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 : >> > On Thu, Jul 16, 2015 at 05:38:57PM -0600, Azael Avalos wrote: >> >> Com

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

2015-07-20 Thread Azael Avalos
Hi Darren, 2015-07-20 15:55 GMT-06:00 Darren Hart : > 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 implementations") denied loading on laptops with a WMI Event >&g

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

2015-07-20 Thread Azael Avalos
Hi Darren, 2015-07-20 15:36 GMT-06:00 Darren Hart : > On Thu, Jul 16, 2015 at 05:32:44PM -0600, Azael Avalos wrote: >> There were previous attempts to "merge" the toshiba SMM module to the >> toshiba_acpi one, they were trying to imitate what the old toshiba >> mo

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

2015-07-17 Thread Azael Avalos
till using that interface, hotkeys reporting should now work on these devices. Signed-off-by: Azael Avalos --- Darren: While checking the driver for the ninja-check report you sent me, it remiended me of the changes made on this patch, and while I was at it, "solved" a couple of the iss

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

2015-07-16 Thread Azael Avalos
thus, such commit denied several supported features. This patch avoids registering the input device and ignores all hotkey events on laptops with such WMI Event GUI, making the supported features found in those laptops to work. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_a

[PATCH] toshiba_acpi: Transflective backlight updates

2015-07-16 Thread Azael Avalos
of it. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 30 +++--- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 3ad7b1f..15d8f0d 100644 --- a/drivers

[PATCH] toshiba_acpi: Add /dev/toshiba_acpi device

2015-07-16 Thread Azael Avalos
y BIOS, while at the same time providing backwards compatibility. Older programs who wish to access the SMM on newer models can do it without much code change, as the toshiba.h header was modified to reflect these changes as well as adds all the toshiba_acpi paths and commands. Signed-off-by: Azae

[PATCH] toshiba_bluetooth: Fix build warning

2015-05-08 Thread Azael Avalos
This patch fixes the build warning caused by the BT status variable, it was previously printing a u64 value, but since it was moved to another function, the value is now an int, and thus causing such warning. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 2 +- 1

Re: [PATCH v2 0/5] toshiba_acpi: Driver cleanup

2015-05-06 Thread Azael Avalos
Hi Darren, 2015-05-06 16:45 GMT-06:00 Darren Hart : > On Wed, May 06, 2015 at 09:08:52AM -0600, Azael Avalos wrote: >> Hi Darren, >> >> 2015-05-06 0:00 GMT-06:00 Darren Hart : >> > On Mon, May 04, 2015 at 11:15:53AM -0600, Azael Avalos wrote: >> >> The

[PATCH v3 5/5] toshiba_acpi: Bump driver version to 0.22

2015-05-06 Thread Azael Avalos
This patch simply bumps the driver version to 0.22, as significant changes were made to the driver, such as cleanups, updated events, keymap handling, fixes and the bluetooth rfkill code removal. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 2 +- 1 file changed, 1

[PATCH v3 2/5] toshiba_acpi: Rename hci_{read, write}1 functions

2015-05-06 Thread Azael Avalos
This patch simply renames the hci_{read, write}1 functions to hci_{read, write}. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 44 ++--- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b

[PATCH v3 4/5] toshiba_acpi: Remove TOS_FAILURE check from some functions

2015-05-06 Thread Azael Avalos
This patch removes the check for TOS_FAILURE whenever we are using the tci_raw function call, as that code is only returned by the {hci, sci}_{read, write} functions and never by the tci_raw, and thus making that check irrelevant. Signed-off-by: Azael Avalos --- drivers/platform/x86

[PATCH v3 1/5] toshiba_acpi: Remove no longer needed hci_{read, write}2 functions

2015-05-06 Thread Azael Avalos
function was only used by the toshiba_hotkey_event_type_get function. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 39 +++-- 1 file changed, 7 insertions(+), 32 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers

[PATCH v3 3/5] toshiba_acpi: Comments cleanup

2015-05-06 Thread Azael Avalos
This patch simply does some misc cleanup to comments, mainly capitalizes some left over comments from a previous clean up and adds some comments at the beginning of some feature function calls, as well as some misc changes to some comments. Signed-off-by: Azael Avalos --- drivers/platform/x86

[PATCH v3 0/5] toshiba_acpi: Driver cleanup

2015-05-06 Thread Azael Avalos
patch Changes since v1: - Added two new patches to the series, one containing error check removals and another bumping the driver version. Azael Avalos (5): toshiba_acpi: Remove no longer needed hci_{read, write}2 functions toshiba_acpi: Rename hci_{read, write}1 functions toshiba_acpi

Re: [PATCH v2 0/5] toshiba_acpi: Driver cleanup

2015-05-06 Thread Azael Avalos
Hi Darren, 2015-05-06 0:00 GMT-06:00 Darren Hart : > On Mon, May 04, 2015 at 11:15:53AM -0600, Azael Avalos wrote: >> These patches cleanup the driver from some no longer needed >> functions, renames hci_{read, write}1 functions, some comment >> blocks were changed, unneeded

Re: [PATCH v2 3/5] toshiba_acpi: Cleanup blank lines after comment blocks

2015-05-05 Thread Azael Avalos
Hi there, 2015-05-05 8:18 GMT-06:00 Joe Perches : > On Mon, 2015-05-04 at 11:15 -0600, Azael Avalos wrote: >> This patch removes some blank lines after comment blocks, capitalizes >> some comments first words and adds a few comments to the beggining >> of some functions. &g

Re: [PATCH 0/3] toshiba_haps: Some misc changes plus sysfs entries documentation

2015-05-04 Thread Azael Avalos
Hi Darren, 2015-03-06 11:32 GMT-07:00 Darren Hart : > On Thu, Feb 26, 2015 at 10:58:29AM -0700, Azael Avalos wrote: >> These patches make some misc chanes to the driver, replacing sscanf with >> kstrtoint, DEVICE_ATTR_{RW, WO} macros and adding documentation about >&

[PATCH v2 3/5] toshiba_acpi: Cleanup blank lines after comment blocks

2015-05-04 Thread Azael Avalos
This patch removes some blank lines after comment blocks, capitalizes some comments first words and adds a few comments to the beggining of some functions. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 31 +-- 1 file changed, 17 insertions

[PATCH v2 2/5] toshiba_acpi: Rename hci_{read, write}1 functions

2015-05-04 Thread Azael Avalos
This patch simply renames the hci_{read, write}1 functions to hci_{read, write}. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 44 ++--- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b

[PATCH v2 0/5] toshiba_acpi: Driver cleanup

2015-05-04 Thread Azael Avalos
check removals and another bumping the driver version. Darren: Sorry for this, I totally forgot to include the patch to remove the function error check :-( Now this patchset is complete now :-) Azael Avalos (5): toshiba_acpi: Remove no longer needed hci_{read, write}2 functions toshiba_acpi

[PATCH v2 5/5] toshiba_acpi: Bump driver version to 0.22

2015-05-04 Thread Azael Avalos
This patch simply bumps the driver version to 0.22, as significant changeswere made to the driver, such as cleanups, updated events, keymap handling, fixes and the bluetooth rfkill code removal. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 2 +- 1 file changed, 1

[PATCH v2 4/5] toshiba_acpi: Remove TOS_FAILURE check from some functions

2015-05-04 Thread Azael Avalos
This patch removes the check for TOS_FAILURE whenever we are using the tci_raw function call, as that code is only returned by the {hci, sci}_{read, write} functions and never by the tci_raw, and thus making that check irrelevant. Signed-off-by: Azael Avalos --- drivers/platform/x86

[PATCH v2 1/5] toshiba_acpi: Remove no longer needed hci_{read, write}2 functions

2015-05-04 Thread Azael Avalos
function was only used by the toshiba_hotkey_event_type_get function. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 39 +++-- 1 file changed, 7 insertions(+), 32 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers

[PATCH 0/3] toshiba_acpi: Driver cleanup

2015-05-03 Thread Azael Avalos
These patches cleanup the driver from some no longer needed functions, renames hci_{read, write}1 functions and also some comment blocks were changed. Azael Avalos (3): toshiba_acpi: Remove no longer needed hci_{read, write}2 functions toshiba_acpi: Rename hci_{read, write}1 functions

[PATCH v2 0/4] toshiba_bluetooth: Add rfkill code to driver

2015-05-03 Thread Azael Avalos
of three - Typos in comments Azael Avalos (4): toshiba_bluetooth: Add a container struct named toshiba_bluetooth_dev toshiba_bluetooth: Add RFKill handler functions toshiba_bluetooth: Adapt *_enable, *_notify and *_resume functions to rfkill toshiba_bluetooth: Change BT status message to

[PATCH 2/3] toshiba_acpi: Rename hci_{read, write}1 functions

2015-05-03 Thread Azael Avalos
This patch simply renames the hci_{read, write}1 functions to hci_{read, write}. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 44 ++--- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b

[PATCH 3/3] toshiba_acpi: Cleanup blank lines after comment blocks

2015-05-03 Thread Azael Avalos
This patch removes some blank lines after comment blocks, capitalizes some comments first words and adds a few comments to the beggining of some functions. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 31 +-- 1 file changed, 17 insertions

[PATCH 1/3] toshiba_acpi: Remove no longer needed hci_{read, write}2 functions

2015-05-03 Thread Azael Avalos
function was only used by the toshiba_hotkey_event_type_get function. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 39 +++-- 1 file changed, 7 insertions(+), 32 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers

[PATCH v2 4/4] toshiba_bluetooth: Change BT status message to debug

2015-05-03 Thread Azael Avalos
debug message to the *_sync_status function printing the bluetooth device raw status, killswitch, plug and power states of the device as well. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH v2 1/4] toshiba_bluetooth: Add a container struct named toshiba_bluetooth_dev

2015-05-03 Thread Azael Avalos
also used by upcomming patches. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 47 +++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c index

[PATCH v2 3/4] toshiba_bluetooth: Adapt *_enable, *_notify and *_resume functions to rfkill

2015-05-03 Thread Azael Avalos
toshiba_bluetooth_enable. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 47 1 file changed, 18 insertions(+), 29 deletions(-) diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c index

[PATCH v2 2/4] toshiba_bluetooth: Add RFKill handler functions

2015-05-03 Thread Azael Avalos
This patch adds RFKill handler functions to the driver, allowing it to register and update the rfkill switch status. Also, a comment block was moved from the header to the poll function, as it explains why we need to poll the killswitch on older devices. Signed-off-by: Azael Avalos --- drivers

[PATCH v2] toshiba_acpi: Remove bluetooth rfkill code

2015-05-03 Thread Azael Avalos
This patch removes all bluetooth rfkill related code residing in the toshiba_acpi driver. Separate patches will add (and adapt) the code to toshiba_bluetooth (where it belongs). Signed-off-by: Azael Avalos --- Changes since v1: - Merged the two patches into one - Removed a leftover boolean

Re: [PATCH 5/6] toshiba_bluetooth: Change BT status message to debug

2015-04-28 Thread Azael Avalos
Hi there, 2015-04-28 1:36 GMT-06:00 Bjørn Mork : > Azael Avalos writes: > >> The function toshiba_bluetooth_status s currently printing the status >> of the device whenever it is queried, but since the introduction of >> the rfkill poll code, this value will get pr

[PATCH 2/6] toshiba_bluetooth: Add RFKill handler functions

2015-04-27 Thread Azael Avalos
This patch adds RFKill handler functions to the driver, allowing it to register and update the rfkill switch. Also, a comment block was moved from the header to the poll function, as it explains why we need to poll the killswitch on older devices. Signed-off-by: Azael Avalos --- drivers

[PATCH 3/6] toshiba_bluetooth: Clean toshiba_bluetooth_enable function

2015-04-27 Thread Azael Avalos
This patch removes unneeded code from the toshiba_bluetooth_enable function as propper rfkill code as been added now. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 27 --- 1 file changed, 27 deletions(-) diff --git a/drivers/platform/x86

[PATCH 4/6] toshiba_bluetooth: Adapt *_notify and *_resume functions to rfkill

2015-04-27 Thread Azael Avalos
This patch adapts toshiba_bt_rfkill_notify and toshiba_bt_resume functions to update the rfkill status, as they were only calling toshiba_bluetooth_enable. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 20 ++-- 1 file changed, 18 insertions(+), 2

[PATCH 5/6] toshiba_bluetooth: Change BT status message to debug

2015-04-27 Thread Azael Avalos
adds a few more debug messages printing the killswitch, plug and power status of the device as well. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers

[PATCH 6/6] platform/x86: Add RFKILL dependency to toshiba_bluetooth driver

2015-04-27 Thread Azael Avalos
This patch simply adds the RFKILL dependency to Kconfig, as we are now using rfkill code on the driver. Signed-off-by: Azael Avalos --- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 9752761

[PATCH 1/6] toshiba_bluetooth: Add a container struct named toshiba_bluetooth_dev

2015-04-27 Thread Azael Avalos
also used by upcomming patches. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 47 +++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c index

[PATCH 0/6] toshiba_bluetooth: Add rfkill code to driver

2015-04-27 Thread Azael Avalos
These patches add support to use the rfkill core functionality to the Toshiba bluetooth driver and adapting the existing code to it. Azael Avalos (6): toshiba_bluetooth: Add a container struct named toshiba_bluetooth_dev toshiba_bluetooth: Add RFKill handler functions toshiba_bluetooth

[PATCH 1/2] toshiba_acpi: Remove bluetooth rfkill code

2015-04-27 Thread Azael Avalos
This patch removes all bluetooth rfkill related code residing in the toshiba_acpi driver. Separate patches will add (and adapt) the code to toshiba_bluetooth (where it belongs). Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 123 1

[PATCH 0/2] toshiba_acpi: Purge driver from bluetooth RFKill code

2015-04-27 Thread Azael Avalos
These two patches remove all bluetooth rfkill code from toshiba_acpi and its build dependencies, as another series of patches will re-add the rfkill code to toshiba_bluetooth instead. Azael Avalos (2): toshiba_acpi: Remove bluetooth rfkill code platform/x86: Remove RFKILL dependency from

[PATCH 2/2] platform/x86: Remove RFKILL dependency from toshiba_acpi

2015-04-27 Thread Azael Avalos
This patch removes the dependency on rfkill for toshiba_acpi from KConfig, as a previous patch removed all the code related to it. Signed-off-by: Azael Avalos --- drivers/platform/x86/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86

[PATCH v3 3/3] Documentation/ABI: Update sysfs-driver-toshiba_acpi entry

2015-04-02 Thread Azael Avalos
This patch updates the sysfs-driver-toshiba_acpi entry, adding the missing entries for USB Sleep functions. And also, while at the neighborhood, fix some typos and add a note that some features require a reboot. Signed-off-by: Azael Avalos --- .../ABI/testing/sysfs-driver-toshiba_acpi

[PATCH v3 2/3] toshiba_acpi: Fix pr_* messages from USB Sleep Functions

2015-04-02 Thread Azael Avalos
This patch fixes the messages displayed by the USB Sleep Functions, they were printing wrong messages not associated to the feature currently queried. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff

[PATCH v3 1/3] toshiba_acpi: Update and fix USB Sleep and Charge modes

2015-04-02 Thread Azael Avalos
This patch fixes the USB Sleep and Charge mode on certain models where the value returned by the BIOS is different, and thus, making this feature not to work for those models. Also, the "Typical" charging mode was added as a supported mode. Signed-off-by: Azael Avalos --- drivers/pl

[PATCH v3 0/3] toshiba_acpi: Fix USB Sleep & Charge mode and documentation updates

2015-04-02 Thread Azael Avalos
rted value of sleep and charge to zero in case of an error and added comments. - Updated the title and commit message of second patch to better reflect what the patch is doing. Azael Avalos (3): toshiba_acpi: Update and fix USB Sleep and Charge modes toshiba_acpi: Fix pr_* messages from USB S

[PATCH v3 2/3] toshiba_acpi: Fix pr_* messages from USB Sleep Functions

2015-04-02 Thread Azael Avalos
This patch fixes the messages displayed by the USB Sleep Functions, they were printing wrong messages not associated to the feature currently queried. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff

Re: [PATCH v2 1/3] toshiba_acpi: Update and fix USB Sleep and Charge modes

2015-04-02 Thread Azael Avalos
Hi Darren, 2015-04-01 23:21 GMT-06:00 Darren Hart : > On Sun, Mar 29, 2015 at 07:25:39PM -0600, Azael Avalos wrote: >> This patch fixes the USB Sleep and Charge mode on certain models >> where the value returned by the BIOS is different, and thus, making >> this feature

[PATCH v2 3/3] Documentation/ABI: Update sysfs-driver-toshiba_acpi entry

2015-03-29 Thread Azael Avalos
This patch updates the sysfs-driver-toshiba_acpi entry, adding the missing entries for USB Sleep functions. And also, while at the neighborhood, fix some typos and add a note that some features require a reboot. Signed-off-by: Azael Avalos --- .../ABI/testing/sysfs-driver-toshiba_acpi

[PATCH v2 1/3] toshiba_acpi: Update and fix USB Sleep and Charge modes

2015-03-29 Thread Azael Avalos
This patch fixes the USB Sleep and Charge mode on certain models where the value returned by the BIOS is different, and thus, making this feature not to work for those models. Also, the "Typical" charging mode was added as a supported mode. Signed-off-by: Azael Avalos --- drivers/pl

[PATCH v2 2/3] toshiba_acpi: Fix pr_* messages from USB Sleep Functions

2015-03-29 Thread Azael Avalos
This patch fixes the messages displayed by the USB Sleep Functions, they were printing wrong messages not associated to the feature currently queried. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff

[PATCH v2 0/3] toshiba_acpi: Fix USB Sleep & Charge mode and documentation updates

2015-03-29 Thread Azael Avalos
itle and commit message of second patch to better reflect what the patch is doing. Azael Avalos (3): toshiba_acpi: Update and fix USB Sleep and Charge modes toshiba_acpi: Fix pr_* messages from USB Sleep Functions Documentation/ABI: Update sysfs-driver-toshiba_acpi entry .../ABI/testing/s

Re: [PATCH 2/3] toshiba_acpi: Fix typos in pr_* messages from USB Fleep Functions

2015-03-29 Thread Azael Avalos
Hi Darren, 2015-03-27 20:58 GMT-06:00 Darren Hart : > On Fri, Mar 27, 2015 at 03:09:25PM -0600, Azael Avalos wrote: >> This patch fixes typos in the pr_* messages from the USB Sleep >> Functions. >> >> Signed-off-by: Azael Avalos >> --- >> d

Re: [PATCH 1/3] toshiba_acpi: Update and fix USB Sleep and Charge modes

2015-03-29 Thread Azael Avalos
Hi Darren, 2015-03-27 20:53 GMT-06:00 Darren Hart : > On Fri, Mar 27, 2015 at 03:09:24PM -0600, Azael Avalos wrote: >> This patch fixes the USB Sleep and Charge mode on certain models >> where the value returned by the BIOS is different, and thus, making >> this feature

[PATCH 3/3] Documentation/ABI: Update sysfs-driver-toshiba_acpi entry

2015-03-27 Thread Azael Avalos
This patch updates the sysfs-driver-toshiba_acpi entry, adding the missing entries for USB Sleep functions. And also, while at the neighborhood, fix some typos and add a note that some features require a reboot. Signed-off-by: Azael Avalos --- .../ABI/testing/sysfs-driver-toshiba_acpi

[PATCH 2/3] toshiba_acpi: Fix typos in pr_* messages from USB Fleep Functions

2015-03-27 Thread Azael Avalos
This patch fixes typos in the pr_* messages from the USB Sleep Functions. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86

[PATCH 0/3] toshiba_acpi: Fix USB Sleep & Charge mode and documentation updates

2015-03-27 Thread Azael Avalos
This patch fixes the USB Sleep & Charge charging mode on certain models, fixes some typos in pr_* messages and also adds the missing entries in the documentation file. Azael Avalos (3): toshiba_acpi: Update and fix USB Sleep and Charge modes toshiba_acpi: Fix typos in pr_* messages from

[PATCH 1/3] toshiba_acpi: Update and fix USB Sleep and Charge modes

2015-03-27 Thread Azael Avalos
This patch fixes the USB Sleep and Charge mode on certain models where the value returned by the BIOS is different, and thus, making this feature not to work for those models. Also, the "Typical" charging mode was added as a supported mode. Signed-off-by: Azael Avalos --- drivers/pl

[PATCH v3 3/3] toshiba_bluetooth: Fix enabling/disabling loop on recent devices

2015-03-26 Thread Azael Avalos
check to verify the status of the BT device, returning silently if it is already activated. Also, checks and returns appropriate error values while evaluating the AUSB and BTPO methods. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 50 +++- 1

[PATCH v3 2/3] toshiba_bluetooth: Clean up *_add function and disable BT device at removal

2015-03-26 Thread Azael Avalos
. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c index b479a70..b8404c7 100644 --- a

[PATCH v3 1/3] toshiba_bluetooth: Add three new functions to the driver

2015-03-26 Thread Azael Avalos
respectively. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 51 1 file changed, 51 insertions(+) diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c index 2cb1ea6..b479a70 100644 --- a/drivers

[PATCH v3 0/3] toshiba_bluetooth: Clean up driver plus a bugfix

2015-03-26 Thread Azael Avalos
Changes since v1: - Removed pr_info calls from *_notify function - Added checks to the status of the BT device removing the TODO comment and retaining the previous functionality of the driver Azael Avalos (3): toshiba_bluetooth: Add three new functions to the driver toshiba_bluetooth: Clean up

Re: [PATCH v2 4/4] toshiba_bluetooth: Remove BT enable code from *_notify function

2015-03-25 Thread Azael Avalos
Hi Darren, 2015-03-25 15:24 GMT-06:00 Darren Hart : > On Wed, Mar 25, 2015 at 02:19:17PM -0600, Azael Avalos wrote: >> Bug 93911 reported a broken handling of the BT device, causing the >> driver to get stuck in a loop enabling/disabling the device whenever >> the device

[PATCH v2 2/4] toshiba_bluetooth: Clean up *_add function and disable BT device at removal

2015-03-25 Thread Azael Avalos
. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c index b479a70..b8404c7 100644 --- a

[PATCH v2 1/4] toshiba_bluetooth: Add three new functions to the driver

2015-03-25 Thread Azael Avalos
respectively. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 51 1 file changed, 51 insertions(+) diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c index 2cb1ea6..b479a70 100644 --- a/drivers

[PATCH v2 3/4] toshiba_bluetooth: Clean toshiba_bluetooth_enable function

2015-03-25 Thread Azael Avalos
This patch cleans the toshiba_bluetooth_enable function, removing some unneeded code and returning appropriate error values. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 32 1 file changed, 12 insertions(+), 20 deletions(-) diff

[PATCH v2 4/4] toshiba_bluetooth: Remove BT enable code from *_notify function

2015-03-25 Thread Azael Avalos
the BT device status, activating the device only when it is disabled and returning silently if the KS is activated, this way we retain the previous functionality but without affecting the newer devices that trigger the enable/disable loop. Signed-off-by: Azael Avalos --- drivers/platform/x86

[PATCH v2 0/4] toshiba_bluetooth: Clean up driver plus a bugfix

2015-03-25 Thread Azael Avalos
retaining the previous functionality of the driver Azael Avalos (4): toshiba_bluetooth: Add three new functions to the driver toshiba_bluetooth: Clean up *_add function and disable BT device at removal toshiba_bluetooth: Clean toshiba_bluetooth_enable function toshiba_bluetooth: Remove BT

Re: [PATCH 4/4] toshiba_bluetooth: Remove BT enable code from *_notify function

2015-03-25 Thread Azael Avalos
Hi Darren, 2015-03-25 11:50 GMT-06:00 Darren Hart : > On Wed, Mar 18, 2015 at 01:12:59PM -0600, Azael Avalos wrote: >> Bug 93911 reported a broken handling of the BT device, causing the >> driver to get stuck in a loop enabling/disabling the device whenever >> the device

[PATCH v2 3/3] toshiba_acpi: Fix the enabling of the Special Functions

2015-03-20 Thread Azael Avalos
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 --- drivers/platform/x86/toshiba_acpi.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/drivers/

[PATCH v2 2/3] toshiba_acpi: Use the Hotkey Event Type function for keymap choosing

2015-03-20 Thread Azael Avalos
ching list. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 70 + 1 file changed, 32 insertions(+), 38 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index c4edae3..d7dac48 100644 ---

[PATCH v2 0/3] toshiba_acpi: Hotkey handling and keymap updates

2015-03-20 Thread Azael Avalos
er reflect what the call does, and also the HCI_HOTKEY_EVENT_* types - Fixed a typo in the error description - Added a comment block explaining a bit why we also use the "Special Functions" as a check for keymap selection Azael Avalos (3): toshiba_acpi: Add Hotkey Event Type func

[PATCH v2 1/3] toshiba_acpi: Add Hotkey Event Type function and definitions

2015-03-20 Thread Azael Avalos
This patch adds support to query the "Hotkey Event Type" the system supports. There are two main event types (so far), 0x10 and 0x11, with the first being all those laptops that have the old keyboard layout, and the latter all those new laptops with the new keyboard layout. Signed-off

[PATCH 2/4] toshiba_bluetooth: Clean up *_add function and disable BT device at removal

2015-03-18 Thread Azael Avalos
. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c index b479a70..b8404c7 100644 --- a

[PATCH 3/4] toshiba_bluetooth: Clean toshiba_bluetooth_enable function

2015-03-18 Thread Azael Avalos
This patch cleans the toshiba_bluetooth_enable function, removing some unneeded code and returning appropriate error values. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 32 1 file changed, 12 insertions(+), 20 deletions(-) diff

[PATCH 4/4] toshiba_bluetooth: Remove BT enable code from *_notify function

2015-03-18 Thread Azael Avalos
add code to handle special circumstances depending on the status of the device. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers

[PATCH 1/4] toshiba_bluetooth: Add three new functions to the driver

2015-03-18 Thread Azael Avalos
respectively. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 51 1 file changed, 51 insertions(+) diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c index 2cb1ea6..b479a70 100644 --- a/drivers

[PATCH 3/4] toshiba_bluetooth: Clean toshiba_bluetooth_enable function

2015-03-18 Thread Azael Avalos
This patch cleans the toshiba_bluetooth_enable function, removing some unneeded code and returning appropriate error values. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_bluetooth.c | 32 1 file changed, 12 insertions(+), 20 deletions(-) diff

[PATCH 0/4] toshiba_bluetooth: Clean up driver plus a bugfix

2015-03-18 Thread Azael Avalos
These patches introduce three new functions, cleaning up the driver code, checking for errors and returning accordingly, and also fixes bug 93911. Azael Avalos (4): toshiba_bluetooth: Add three new functions to the driver toshiba_bluetooth: Clean up *_add function and disable BT device at

[PATCH] MAINTAINERS: Add missing Toshiba devices and add myself as maintainer

2015-03-06 Thread Azael Avalos
Add the missing toshiba_bluetooth and toshiba_haps entries and add myself as their maintainer. Also add the Maintainers entry for toshiba_acpi driver and change its status to maintained. Signed-off-by: Azael Avalos --- MAINTAINERS | 15 ++- 1 file changed, 14 insertions(+), 1

[PATCH] toshiba_acpi: Update events in toshiba_acpi_notify

2015-03-06 Thread Azael Avalos
: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 29 +++-- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 09c6a2f..3a895a8 100644 --- a/drivers/platform/x86/toshiba_acpi.c

Re: [PATCH 0/3] toshiba_acpi: Hotkey handling and keymap updates

2015-03-06 Thread Azael Avalos
Hi Darren, 2015-03-06 11:34 GMT-07:00 Darren Hart : > On Thu, Feb 26, 2015 at 10:57:11AM -0700, Azael Avalos wrote: >> These patches add support to a new function that queries the supported Hotkey >> Event Type, making the use of the DMI matching unnecessary and also fixes

Re: [PATCH 3/3] toshiba_acpi: Fix the enabling of the Special Functions

2015-03-06 Thread Azael Avalos
Hi Darren, 2015-03-06 11:28 GMT-07:00 Darren Hart : > 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 en

Re: [PATCH 1/3] toshiba_acpi: Add Hotkey Event Type function and definitions

2015-03-06 Thread Azael Avalos
Hi Darren, 2015-03-06 11:21 GMT-07:00 Darren Hart : > On Thu, Feb 26, 2015 at 10:57:12AM -0700, Azael Avalos wrote: > > Hi Azael, > > I'm pretty behind on this one, apologies. > No wories, we still have plenty of time for 4.1 ;-) I simply wanted to send these early

Re: [PATCH 2/2] toshiba_acpi: Add Satellite P50W-B to alternative keymap and create new mappings.

2015-03-05 Thread Azael Avalos
Hi Joe, 2015-03-05 13:59 GMT-07:00 Joseph Salisbury : > On 03/04/2015 07:05 PM, Azael Avalos wrote: >> Hi there, >> >> 2015-03-04 14:52 GMT-07:00 Joseph Salisbury : >> ... >>> + { KE_KEY, 0x140, { KEY_BRIGHTNESSDOWN } }, >>>

<    1   2   3   4   >