]> bbs.cooldavid.org Git - jme.git/commit
jme: Cleanup PM operations after using new PM API up_fixpwr
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 04:49:36 +0000 (12:49 +0800)
commit45b025cf552117eb4644fc417475fb9334abc80a
treee1daf1760c2ab89e0004f4e291b335a88de17146
parente10cd037781dc0f6502a0ca07dde56676967569d
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