diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2020-03-13 10:52:02 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-13 09:37:50 +0000 |
commit | 4af7de3a8a64e677b2d83119fcff7f094fcf9b74 (patch) | |
tree | daa06007abb5f5596d5108757c76e4f152897436 /power/cannonlake.c | |
parent | 9a5de6a2ae81c534356e0fbd2bf8cfee54856674 (diff) | |
download | chrome-ec-4af7de3a8a64e677b2d83119fcff7f094fcf9b74.tar.gz |
kukui/dynamic-pdo: setting input current limit correctly
While the input current is restricted when charger throttling,
we should consider the previous set current limit, rather than just
only the PD_MAX_CURRENT_MA. Otherwise, the power source's ability
would be ignored, and will request more than the power source can provide.
BRANCH=kukui
BUG=b:147852834 b:141903096
TEST=Plug 9V/2A PD charger, and ensure krane drains under 2A.
Change-Id: I8a0c99cad1c61e556af13ca166fdd0e3664af55d
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2100370
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'power/cannonlake.c')
0 files changed, 0 insertions, 0 deletions