Files
OpenCellular/common
David Hendricks 23995de3ee gaia: update ap_suspended usage
This CL updates ap_suspended usage so that it's only updated when it
makes sense to do so:
- Clear ap_suspended during power_off() since it can only be reliably
  determined when the pull-up on PA7 is enabled (when AP is on).
- chipset_in_state() should not re-assign ap_suspended. That was a hack
  to try to get around earlier brokenness. However, that does not
  really work since SUSPEND_L can appear to be asserted when AP is
  off and could cause ap_suspended to become inconsistent with the
  actual AP state.
- When AP is on, ap_suspended should be managed by gaia_suspend_event.
  When AP is off, ap_suspended should be 0 (

Signed-off-by: David Hendricks <dhendrix@chromium.org>
BRANCH=snow
BUG=chrome-os-partner:13200
TEST=tested on Snow using "power" command at EC console

1. AP running
> power
on

2. after running powerd_suspend
> power
suspend

3. "power off" at EC console
> power
off

Change-Id: I88dad9f02d57fe7244bf607eea2088ee0b80b75a
Reviewed-on: https://gerrit.chromium.org/gerrit/31627
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Ready: David Hendricks <dhendrix@chromium.org>
Tested-by: David Hendricks <dhendrix@chromium.org>
2012-08-29 15:34:52 -07:00
..
2012-08-06 00:05:51 -07:00
2012-07-10 14:56:05 -07:00
2012-07-17 13:11:44 -07:00
2012-07-17 13:11:44 -07:00
2012-08-29 15:34:52 -07:00
2012-08-09 19:18:20 -07:00
2012-06-27 00:55:04 -07:00
2012-06-25 07:15:50 -07:00
2012-05-25 13:34:06 -07:00
2012-07-30 13:41:33 -07:00
2012-08-09 17:40:37 -07:00
2012-08-07 19:06:43 -07:00
2012-08-28 16:39:32 -07:00
2012-07-23 23:30:33 -07:00
2012-08-24 00:38:48 -07:00
2012-08-13 14:22:23 -07:00