diff options
author | Scott Collyer <scollyer@google.com> | 2019-03-29 09:12:34 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-05 16:52:09 -0700 |
commit | d0a350e6691a9d93138051e2aa00e0d6c26151b5 (patch) | |
tree | 7728f71ebc99b32ee0fe40929a3763715baf3f85 /driver/sync.c | |
parent | 678bb4526ef19ef9458910d0231722b0de4c5ddf (diff) | |
download | chrome-ec-stabilize-12060.B.tar.gz |
bc12: pi3usb9201: Save supplier to update charge managerstabilize-12060.Bstabilize-12058.Bstabilize-12054.B
When bc1.2 detection is completed, it will update the available charge
for the supplier type which was detected. When bc1.2 is powered down
(upon CC detach), the charge manager needs to be informed that the
available charge for this supplier type is 0,
This CL modifies the pi3usb9201 driver to store the most recent bc1.2
detection supplier type for each port. When the bc1.2 chip is powered
down, then the charge manager can be properly updated.
BUG=b:129435454
BRANCH=none
TEST=Connected, then removed charger to both ports 0 and 1. The
checked status via ectool:
localhost ~ # ectool usbpdpower
Port 0: Disconnected
Port 1: Disconnected
Change-Id: Ic6ae27bb498d2a82389803019f948bc11e3dec23
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1545076
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'driver/sync.c')
0 files changed, 0 insertions, 0 deletions