ANDROID: Revert "usb: typec: tcpm: not sink vbus if operational current is 0mA"
This reverts commit 803b1c8a0c.
Prevents Pixel from charging. Revert while we investigate the issue.
Test: adb shell cat /sys/class/power_supply/battery/status
Bug: 307718635
Change-Id: I9e8c6c62aac25cf41ac37c1d6bda696d8ecaf4aa
Signed-off-by: André Draszik <draszik@google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
8453aa945e
commit
3420cae8dd
@@ -4267,9 +4267,7 @@ static void run_state_machine(struct tcpm_port *port)
|
||||
if (port->slow_charger_loop && (current_lim > PD_P_SNK_STDBY_MW / 5))
|
||||
current_lim = PD_P_SNK_STDBY_MW / 5;
|
||||
tcpm_set_current_limit(port, current_lim, 5000);
|
||||
/* Not sink vbus if operational current is 0mA */
|
||||
tcpm_set_charge(port, !!pdo_max_current(port->snk_pdo[0]));
|
||||
|
||||
tcpm_set_charge(port, true);
|
||||
if (!port->pd_supported)
|
||||
tcpm_set_state(port, SNK_READY, 0);
|
||||
else
|
||||
@@ -4552,8 +4550,7 @@ static void run_state_machine(struct tcpm_port *port)
|
||||
tcpm_set_current_limit(port,
|
||||
tcpm_get_current_limit(port),
|
||||
5000);
|
||||
/* Not sink vbus if operational current is 0mA */
|
||||
tcpm_set_charge(port, !!pdo_max_current(port->snk_pdo[0]));
|
||||
tcpm_set_charge(port, true);
|
||||
}
|
||||
if (port->ams == HARD_RESET)
|
||||
tcpm_ams_finish(port);
|
||||
|
||||
Reference in New Issue
Block a user