Skip to content

Commit b3120ec

Browse files
committed
fwk: fix PD charge ceiling ignoring controller when not source
This fixes an issue where it would set the ceiling value on just the port value, meaning it would always go to the same controller even when it should be applying to a different controller.
1 parent 03829d6 commit b3120ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zephyr/program/framework/src/cypress_pd_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ static void cypd_update_port_state(int controller, int port)
12681268

12691269
/*
12701270
* The port can have several states active:
1271-
* 1. Type C active (with no PD contract) CC resistor negociation only
1271+
* 1. Type C active (with no PD contract) CC resistor negotiation only
12721272
* 2. Type C active with PD contract
12731273
* 3. Not active
12741274
* Each of 1 and 2 can be either source or sink
@@ -1280,7 +1280,7 @@ static void cypd_update_port_state(int controller, int port)
12801280
type_c_current);
12811281
} else {
12821282
typec_set_input_current_limit(port_idx, 0, 0);
1283-
charge_manager_set_ceil(port,
1283+
charge_manager_set_ceil(port_idx,
12841284
CEIL_REQUESTOR_PD,
12851285
CHARGE_CEIL_NONE);
12861286
}

0 commit comments

Comments
 (0)