summaryrefslogtreecommitdiff
path: root/board/lick
diff options
context:
space:
mode:
authorMarco Chen <marcochen@google.com>2021-01-27 18:07:18 +0800
committerCommit Bot <commit-bot@chromium.org>2021-01-28 05:20:51 +0000
commit8928ffebbb11cc652678458023fff83a04a4c45c (patch)
tree26508054967fcc53af50b6f3e7e9f5391bd61ebb /board/lick
parent14828a6cb4cef03608261fd05659c90d90ccca5b (diff)
downloadchrome-ec-8928ffebbb11cc652678458023fff83a04a4c45c.tar.gz
max14637: call bc12_detect in VBUS off can't update charge as available
Originally bc12_detect function not only detects BC12 status but also update result to charge manager. Now bc12_detect can be called not only when VBUS is on but also off because of CL:2626791. The result is that charge manager would report charging available even if VBUS is off. As a result, we split charger manager update from bc12_detect as the single function so bc12_detect can be called when VBUS is on or off but charger manager update for available charging will be triggered when VBUS is on. BUG=b:177845650, b:177265749, b:178509655 BRANCH=octopus TEST=make buildall -j 8 TEST=check online parameter in /sys/class/power_supply can report correct value when PD adapter or BC12 charger is plugged in/out. TEST=check `ectool usbpdpower` can report correct values for PD adapter and BC12 charger. Change-Id: Ifc4f23edb9272177a6b3637b812b86cf9bef2378 Signed-off-by: Marco Chen <marcochen@chromium.org> Signed-off-by: Marco Chen <marcochen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2652112 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> (cherry picked from commit 302eff661a321bee4bb6420c490f6610e8e48c23) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2654669 Reviewed-by: Henry Sun <henrysun@google.com>
Diffstat (limited to 'board/lick')
0 files changed, 0 insertions, 0 deletions