[Bug 80] wakeup reason not in /proc/cmdline
andy at openmoko.com
Mon May 26 19:51:38 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Somebody in the thread at some point said:
| I think, the textual representation
| in /sys/devices/platform/neo1973-resume.0/resume_reason should be more
| agnostic about particular system architecture. E.g we might see usbins,
| usbrem on a completely different source - like SoC-USB-OTG controller
- - in
| future designs (GTA0x). EINT04_JACK and EINT07_HOLDKEY may move to
| WM8753 internal interrupt sources even for GTA03. I suggest to use
| symbolic names like
| EINT04_JACK -> HP-JACKINSERT
| usbins -> USB-JACKINSERT
| This allows userspace to work independent of actual platform.
Well HP-JACKINSERT would be wrong, it also fires for removal.
If you look at the pcf50633-specific wake sources, or EINT12_GLAMO, I
don't know it can be any more agnostic about hardware. If people are
grepping on the _JACK part, and we don't confuse matters by referring to
USB as a "jack" too, it can be futureproof enough I think. It's fine if
the first part like EINT12 is just a diagnostic hint for humans.
| Also I wonder whether it's of any meaning to have neo1973 as part of
| where we talk about neoFreerunner actually. Same considerations.
I never really understood the sanity of the mapping, but AIUI no1973 is
used where the stuff is independent of specific GTAxx version, so it
would be appropriate here.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the openmoko-kernel