]> bbs.cooldavid.org Git - jme.git/commit
jme: Cleanup PM operations after using new PM API
authorGuo-Fu Tseng <cooldavid@cooldavid.org>
Tue, 28 Jun 2011 04:49:36 +0000 (12:49 +0800)
committerGuo-Fu Tseng <cooldavid@cooldavid.org>
Tue, 28 Jun 2011 08:30:15 +0000 (16:30 +0800)
commit3d12cc1b425b9e0f0fdca70c4f567ec8fa0add5c
treee119d181145beeba97a3a3106ddf64af701b17fa
parent614c0bfd43efd9b3d4605cc3a966d7f2e9897d9c
jme: Cleanup PM operations after using new PM API

1. Using enum name instead of numeric value.
2. device_set_wakeup_enable expect bool argument
   adding !!() to the argument to be passed.
3. Remove non-hardware related operations from
   jme_clear_pm()
4. Reuse jme_clear_pm() in jme_resume()
5. Clear wakeup event indicator bits(call jme_clear_pm())
   before going to sleep.
6. Check for wakeup setting while shutdown
Turn off PHY if wakeup is not enabled.
Power-safe PHY(lower speed) if wakeup is enabled.
jme.c
jme.h