From f08109522dab20b9621489ccf04e98c26c30cd3f Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Tue, 31 Jan 2017 10:48:31 -0800 Subject: charge_ramp: Specify port number in board_is_vbus_too_low() charge_ramp needs to make a decision based upon the VBUS level on one specific port - the port that is ramping. The VBUS level on any other charge ports (if present) is not relevant. BUG=chrome-os-partner:54099 BRANCH=reef, gru TEST=With subsequent patches, verify charge_ramp success with a variety of BC1.2 chargers. Change-Id: Ie0a51a577e2b7491222560cd08dd5321ff3b7975 Signed-off-by: Shawn Nematbakhsh Reviewed-on: https://chromium-review.googlesource.com/435561 Commit-Ready: Shawn N Tested-by: Shawn N Reviewed-by: Vijay P Hiremath Reviewed-by: Shawn N --- test/charge_ramp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/charge_ramp.c b/test/charge_ramp.c index 33db036a59..6e9f239101 100644 --- a/test/charge_ramp.c +++ b/test/charge_ramp.c @@ -47,7 +47,7 @@ int board_is_consuming_full_charge(void) return charge_limit_ma <= system_load_current_ma; } -int board_is_vbus_too_low(enum chg_ramp_vbus_state ramp_state) +int board_is_vbus_too_low(int port, enum chg_ramp_vbus_state ramp_state) { return MIN(system_load_current_ma, charge_limit_ma) > vbus_low_current_ma; -- cgit v1.2.1