Skip to content

Commit 51f0c4e

Browse files
LeoCX-TsaiLeoCX_Tsai
andauthored
fwk: don't force the limit when batt cutoff (#979)
we will force the limit to 500mA when PD process transition until PSRDY but when cutoff this protect will effect cutoff behavior so ignore the limit protect when cutoff. Signed-off-by: LeoCX_Tsai <leocx_tsai@compal.corp-partner.google.com> Co-authored-by: LeoCX_Tsai <leocx_tsai@compal.corp-partner.google.com>
1 parent 20999ff commit 51f0c4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zephyr/program/lotus/src/cypress_pd_common.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1912,7 +1912,9 @@ void cypd_port_int(int controller, int port)
19121912
pd_port_states[port_idx].epr_support = 1;
19131913
CPRINTS("P%d EPR mode capable", port_idx);
19141914
}
1915-
snk_transition_flags = 1;
1915+
if (!battery_is_cut_off() && !battery_cutoff_in_progress())
1916+
snk_transition_flags = 1;
1917+
19161918
break;
19171919
case CCG_RESPONSE_EPR_EVENT:
19181920
CPRINTS("CCG_RESPONSE_EPR_EVENT %d", port_idx);

0 commit comments

Comments
 (0)