All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] WMI
@ 2007-12-18 23:51 Carlos Corbacho
  2007-12-18 23:51 ` [PATCH 1/4] ACPI: WMI: Add ACPI-WMI mapping driver Carlos Corbacho
                   ` (4 more replies)
  0 siblings, 5 replies; 24+ messages in thread
From: Carlos Corbacho @ 2007-12-18 23:51 UTC (permalink / raw)
  To: linux-acpi; +Cc: Len Brown, Matthew Garrett, Alexey Starikovskiy

YAWR - Yet Another WMI release

Patch #1: (WMI - driver and in kernel interface)

Updated EC region handling as per Alexey's comments

Len:
For review, and hopefully to go up to 2.6.25

(Bar the EC stuff, this code has also been inflic^^^^tested by acer_acpi users
with the 0.10 RCs and 0.10 releases, so I'm confident on Acer hardware at least
that it won't break horribly).

Patch #2: (acer-wmi) - No Change

For review, and (rather tentatively here) 2.6.25 material?

Patch #3: (tc1100-wmi) - No Change

RFC only, needs actual testing on the hardware, and probably very broken.
Waiting on Matthew Garrett to get some free time to test this.

Patch #4: (WMI sysfs interface) - No Change

RFC only (see patch #5 for reason). Adds interface under
/sys/devices/virtual/wmi

Patch #5: (WMI sysfs workaround) - No change

Temporary hack, needed to get patch #4 working, due to a limitation on bus_id
length (Kay Sievers is apparently working on this, ref Greg KH[1]). This
should _NOT_ be applied to any upstream kernel.

-Carlos

[1] http://lkml.org/lkml/2007/12/4/30

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [PATCH 0/4] WMI & acer_wmi
@ 2007-12-08  1:58 Carlos Corbacho
  2007-12-08  2:00 ` [PATCH 1/4] ACPI: WMI: Add ACPI-WMI mapping driver Carlos Corbacho
  0 siblings, 1 reply; 24+ messages in thread
From: Carlos Corbacho @ 2007-12-08  1:58 UTC (permalink / raw)
  To: Linux-acpi; +Cc: Len Brown, Matthew Garrett

Patch 1: Add ACPI-WMI mapping driver

Len - unless there are any objections, I would like this patch applied.

---

Patch 2: Add driver for newer Acer laptops (acer-wmi)

Matthew - I've added both GUID based matching (long term plan - see notes for 
patch 3 & 4) and WMI based matching (short term - until patch 3 can be 
applied. Doesn't cover all supported laptops, but should cover the Acer ones 
at least, which are the greater majority of the acer-wmi supported laptops).

Len - Once any other comments from either Matthew or yourself are addressed, 
I'd like to get this patch applied.

---

Patch 3: (RFC) Add sysfs userspace interface (to WMI)

I rewrote the sysfs code (again!). Rather than fiddling with kobjects directly 
(which are in the middle of another big change...) I've switched WMI to a 
class with virtual devices - each GUID is now its own virtual device, which 
means we can do matching based on the GUID.

e.g. (this is a real, tested and working example from acer-wmi)

MODULE_ALIAS("wmi:67C3371D-95A3-4C37-BB61-DD47B491DAAB");

Also, each GUID now does _not_ have instance subdirectories (since this would 
involve more kobject fiddling, which I want to avoid). Instead, I've added 
two new files, instance_count (reports the number of instances from the GUID 
entry in _WDG) and instance (the instance we want to execute).

So executing, for example, a method, is now:

write an instance (0 to instance_count) to 'instance' (e.g. 1)
write a method ID to method (e.g. 1)
(write input data to 'data' - if there is any input)
read 'data' to execute and get output from call.

However, this patch is an RFC only - it should _not_ be applied to the ACPI 
tree, or pushed to -mm/ upstream (see patch #4 for why)

---

Patch 4: Limit device string to 19 characters

Unfortunately, struct device still has a static bus_id array of 20 characters 
(WMI needs 36 + null termination). Ref Greg KH, Kay Sievers is apparently 
working on a patch to fix this problem - http://lkml.org/lkml/2007/12/4/30

This patch is just a hack so that you can actually load and test patch #3 
(although it means the GUID directory names are truncated - however, this 
will not affect either the autoloading or being able to trigger the methods/ 
data calls via sysfs).

-Carlos
-- 
E-Mail: carlos@strangeworlds.co.uk
Web: strangeworlds.co.uk
GPG Key ID: 0x23EE722D

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2008-02-08 15:26 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-18 23:51 [PATCH 0/5] WMI Carlos Corbacho
2007-12-18 23:51 ` [PATCH 1/4] ACPI: WMI: Add ACPI-WMI mapping driver Carlos Corbacho
2007-12-26 21:17   ` Matthew Garrett
2007-12-27  1:09     ` Carlos Corbacho
2007-12-27  2:21       ` Matthew Garrett
2007-12-18 23:51 ` [PATCH 2/4] acer-wmi: Add driver for newer Acer laptops Carlos Corbacho
2007-12-19  1:58   ` Carlos Corbacho
2007-12-19  7:45     ` Matthew Garrett
2007-12-18 23:51 ` [PATCH 3/4] [RFC] tc1100-wmi: Add driver for HP Compaq TC1100 Tablets Carlos Corbacho
2007-12-18 23:52 ` [PATCH 4/4] [RFC] ACPI: WMI: Add sysfs userspace interface Carlos Corbacho
2007-12-26 19:38   ` Matthew Garrett
2007-12-27  0:54     ` Carlos Corbacho
2007-12-27  1:05       ` Carlos Corbacho
2007-12-26 22:48 ` [PATCH, RFC] HP WMI hotkey driver Matthew Garrett
2008-01-03 16:58   ` Dmitry Torokhov
2008-01-14 17:41     ` [PATCH, RFC] HP WMI hotkey driver, RFKill query? Matthew Garrett
2008-01-14 18:27       ` Carlos Corbacho
2008-01-14 22:25         ` Carlos Corbacho
2008-01-15 20:54           ` Dmitry Torokhov
2008-01-16  1:38             ` Carlos Corbacho
2008-01-16  1:49               ` Matthew Garrett
2008-02-07  3:54               ` Len Brown
2008-02-08 15:26                 ` Carlos Corbacho
  -- strict thread matches above, loose matches on Subject: below --
2007-12-08  1:58 [PATCH 0/4] WMI & acer_wmi Carlos Corbacho
2007-12-08  2:00 ` [PATCH 1/4] ACPI: WMI: Add ACPI-WMI mapping driver Carlos Corbacho

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.