On Tuesday 19 June 2007, Marcelo Tosatti wrote: > > > Since OLPC isn't using ACPI, it can be more like embedded Linux, > > and just Do The Right Thing ... create platform devices, etc. :) > > As you know we want user configuration of enabled wakeup events (unlike > embedded platforms where this is hardcoded). It seems that the current > interface available for that is /sys/devices/../power/wakeup hook (when > !ACPI). And, when some issues get sorted, for ACPI too. Patches have circulated which make it all behave properly ... except for some platform-specific oddities that haven't gotten sorted out yet. (As I recall, there was one instance of the "EHCI wrongly issues wakeups" problems; and then the mess with PCI init sequence on powerpc vs most other systems.) > However there are several wakeup capable devices in OLPC which do not > have drivers, thus no platform devices: > > - power button > - lid > > It seems that creating platform devices for these two just for the > purpose of a having an interface for enabling wakeup events is overkill. What Jens said. ;) I'll disagree. Not just because ACPI already creates devices for those two cases, but because creating normal device nodes there is the Right Thing To Do. It's cheap, and won't surprise anyone. > Given that, we probably want something similar to what was initially > described in http://wiki.laptop.org/go/Power_Management_Interface ? > > The downside of doing that is a non-unified interface: platform > devices via /sys/devices/../power/wakeup and otherwise > /sys/whatever/wakeup/source? That's exactly why "we" do *NOT* want something like what was sketched in that Wiki. Gratuitous divergence hurts ... and in this case, it's trivial to adopt that common solution (just add platform device, managed the usual way) and not diverge. - Dave - To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html