diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-02-16 15:01:39 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-02-17 20:53:05 +0000 |
commit | 275606d104183c09ecabae3affa914e9f3b22926 (patch) | |
tree | a44668ec76e31902792ddbbed08f4adea8f66965 /board/samus_pd/board.h | |
parent | 672d37789f6a9ba93550c229f72a56b0cc8e041d (diff) | |
download | chrome-ec-275606d104183c09ecabae3affa914e9f3b22926.tar.gz |
samus: avoid waking extpower task until task has been initialized
Fix booting without battery by avoiding waking the extpower task
until it has run extpower_board_hacks() the first time.
The problem was if there was no battery and AC was attached,
extpower_board_hacks() would run twice on boot, once in extpower
task initialization, before the while(1) loop, and a second time
due to the AC_PRESENT interrupt. This would cause
extpower_board_hacks() to think that AC had transitioned from 1
to 1, which represents a glitch on ACOK, so it would disable
charging, thus causing us to lose power.
BUG=chrome-os-partner:35570
BRANCH=samus
TEST=load on a samus and boot with and without battery
Change-Id: Idf6d0022f7dbedbb66a2fbe1c2b7dd885eabc43b
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/250301
Reviewed-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'board/samus_pd/board.h')
0 files changed, 0 insertions, 0 deletions