summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-02-16 15:01:39 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-17 20:53:05 +0000
commit275606d104183c09ecabae3affa914e9f3b22926 (patch)
treea44668ec76e31902792ddbbed08f4adea8f66965 /include/config.h
parent672d37789f6a9ba93550c229f72a56b0cc8e041d (diff)
downloadchrome-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 'include/config.h')
0 files changed, 0 insertions, 0 deletions