* [PATCH] toshiba_acpi: Update events in toshiba_acpi_notify
@ 2015-03-07 1:14 Azael Avalos
2015-03-07 1:14 ` [PATCH] MAINTAINERS: Add missing Toshiba devices and add myself as maintainer Azael Avalos
2015-03-14 18:47 ` [PATCH] toshiba_acpi: Update events in toshiba_acpi_notify Darren Hart
0 siblings, 2 replies; 4+ messages in thread
From: Azael Avalos @ 2015-03-07 1:14 UTC (permalink / raw)
To: Darren Hart, platform-driver-x86, linux-kernel; +Cc: Azael Avalos
This patch adds a few more events sent to TOSXXXX devices, some of
them are already identified, while some others simply print a message
informing the type of event received.
Also, a netlink event is generated so that userspace apps, daemons,
etc. act accordingly to these events.
Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
---
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
+++ b/drivers/platform/x86/toshiba_acpi.c
@@ -2801,6 +2801,21 @@ static void toshiba_acpi_notify(struct acpi_device *acpi_dev, u32 event)
case 0x80: /* Hotkeys and some system events */
toshiba_acpi_process_hotkeys(dev);
break;
+ case 0x81: /* Dock events */
+ case 0x82:
+ case 0x83:
+ pr_info("Dock event received %x\n", event);
+ break;
+ case 0x88: /* Thermal events */
+ pr_info("Thermal event received\n");
+ break;
+ case 0x8f: /* LID closed */
+ case 0x90: /* LID is closed and Dock has been ejected */
+ break;
+ case 0x8c: /* SATA power events */
+ case 0x8b:
+ pr_info("SATA power event received %x\n", event);
+ break;
case 0x92: /* Keyboard backlight mode changed */
/* Update sysfs entries */
ret = sysfs_update_group(&acpi_dev->dev.kobj,
@@ -2808,17 +2823,19 @@ static void toshiba_acpi_notify(struct acpi_device *acpi_dev, u32 event)
if (ret)
pr_err("Unable to update sysfs entries\n");
break;
- case 0x81: /* Unknown */
- case 0x82: /* Unknown */
- case 0x83: /* Unknown */
- case 0x8c: /* Unknown */
+ case 0x85: /* Unknown */
+ case 0x8d: /* Unknown */
case 0x8e: /* Unknown */
- case 0x8f: /* Unknown */
- case 0x90: /* Unknown */
+ case 0x94: /* Unknown */
+ case 0x95: /* Unknown */
default:
pr_info("Unknown event received %x\n", event);
break;
}
+
+ acpi_bus_generate_netlink_event(acpi_dev->pnp.device_class,
+ dev_name(&acpi_dev->dev),
+ event, 0);
}
#ifdef CONFIG_PM_SLEEP
--
2.2.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] MAINTAINERS: Add missing Toshiba devices and add myself as maintainer
2015-03-07 1:14 [PATCH] toshiba_acpi: Update events in toshiba_acpi_notify Azael Avalos
@ 2015-03-07 1:14 ` Azael Avalos
2015-03-14 18:47 ` Darren Hart
2015-03-14 18:47 ` [PATCH] toshiba_acpi: Update events in toshiba_acpi_notify Darren Hart
1 sibling, 1 reply; 4+ messages in thread
From: Azael Avalos @ 2015-03-07 1:14 UTC (permalink / raw)
To: Darren Hart, platform-driver-x86, linux-kernel; +Cc: 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 <coproscefalo@gmail.com>
---
MAINTAINERS | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 3376bda..7dcbd22e 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -9849,10 +9849,23 @@ S: Maintained
F: drivers/platform/x86/topstar-laptop.c
TOSHIBA ACPI EXTRAS DRIVER
+M: Azael Avalos <coproscefalo@gmail.com>
L: platform-driver-x86@vger.kernel.org
-S: Orphan
+S: Maintained
F: drivers/platform/x86/toshiba_acpi.c
+TOSHIBA BLUETOOTH DRIVER
+M: Azael Avalos <coproscefalo@gmail.com>
+L: platform-driver-x86@vger.kernel.org
+S: Maintained
+F: drivers/platform/x86/toshiba_bluetooth.c
+
+TOSHIBA HDD ACTIVE PROTECTION SENSOR DRIVER
+M: Azael Avalos <coproscefalo@gmail.com>
+L: platform-driver-x86@vger.kernel.org
+S: Maintained
+F: drivers/platform/x86/toshiba_haps.c
+
TOSHIBA SMM DRIVER
M: Jonathan Buzzard <jonathan@buzzard.org.uk>
L: tlinux-users@tce.toshiba-dme.co.jp
--
2.2.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] toshiba_acpi: Update events in toshiba_acpi_notify
2015-03-07 1:14 [PATCH] toshiba_acpi: Update events in toshiba_acpi_notify Azael Avalos
2015-03-07 1:14 ` [PATCH] MAINTAINERS: Add missing Toshiba devices and add myself as maintainer Azael Avalos
@ 2015-03-14 18:47 ` Darren Hart
1 sibling, 0 replies; 4+ messages in thread
From: Darren Hart @ 2015-03-14 18:47 UTC (permalink / raw)
To: Azael Avalos; +Cc: platform-driver-x86, linux-kernel
On Fri, Mar 06, 2015 at 06:14:41PM -0700, Azael Avalos wrote:
> This patch adds a few more events sent to TOSXXXX devices, some of
> them are already identified, while some others simply print a message
> informing the type of event received.
>
> Also, a netlink event is generated so that userspace apps, daemons,
> etc. act accordingly to these events.
>
> Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Queued, thanks Azael.
--
Darren Hart
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] MAINTAINERS: Add missing Toshiba devices and add myself as maintainer
2015-03-07 1:14 ` [PATCH] MAINTAINERS: Add missing Toshiba devices and add myself as maintainer Azael Avalos
@ 2015-03-14 18:47 ` Darren Hart
0 siblings, 0 replies; 4+ messages in thread
From: Darren Hart @ 2015-03-14 18:47 UTC (permalink / raw)
To: Azael Avalos; +Cc: platform-driver-x86, linux-kernel
On Fri, Mar 06, 2015 at 06:14:42PM -0700, Azael Avalos wrote:
> 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 <coproscefalo@gmail.com>
Queued, thanks,
--
Darren Hart
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-03-14 18:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-07 1:14 [PATCH] toshiba_acpi: Update events in toshiba_acpi_notify Azael Avalos
2015-03-07 1:14 ` [PATCH] MAINTAINERS: Add missing Toshiba devices and add myself as maintainer Azael Avalos
2015-03-14 18:47 ` Darren Hart
2015-03-14 18:47 ` [PATCH] toshiba_acpi: Update events in toshiba_acpi_notify Darren Hart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).