diff options
author | Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com> | 2022-05-03 17:50:58 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-03 12:16:01 +0000 |
commit | 8be870863a92c450b6ef5c6f736f88912bbcca24 (patch) | |
tree | 61123b443b2b759b92c51be0391738a9fd356452 | |
parent | b5d7ba81af569d76cec237d3dd38ef1105fc5087 (diff) | |
download | chrome-ec-stabilize-14771.B-main.tar.gz |
galtic: Modify board active charge port setting.stabilize-14771.B-main
If the charge port does not change, we don’t need
to stop the charge IC.
BUG=b:229953914
BRANCH=firmware-dedede-13606.B
TEST=make BOARD=galtic
1. system battery cutoff (Run command ectool batterycutoff)
2. wait about 5 min
3. Plug-AC on TypeC port1.
4. Run ectool battery and check present current.
Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com>
Change-Id: I8afeee2974752aa891c54662a9341c53c651148a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3621595
Tested-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
Reviewed-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
Commit-Queue: Ivan Chen <yulunchen@google.com>
Reviewed-by: Ivan Chen <yulunchen@google.com>
-rw-r--r-- | board/galtic/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/galtic/board.c b/board/galtic/board.c index a1605303cd..47cf77202c 100644 --- a/board/galtic/board.c +++ b/board/galtic/board.c @@ -579,7 +579,7 @@ int board_set_active_charge_port(int port) * Stop the charger IC from switching while changing ports. Otherwise, * we can overcurrent the adapter we're switching to. (crbug.com/926056) */ - if (old_port != CHARGE_PORT_NONE) + if ((old_port != CHARGE_PORT_NONE) && (old_port != port)) charger_discharge_on_ac(1); /* Enable requested charge port. */ |