Skip to content

Commit

Permalink
usb: tcpm: remove capabilities on HARD_RESET_START from SNK_NEGOTIATE…
Browse files Browse the repository at this point in the history
…_CAPABILITIES
  • Loading branch information
Da Xue authored and Da Xue committed Jan 19, 2024
1 parent f69853e commit 5d7341f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/usb/typec/tcpm/tcpm.c
Expand Up @@ -4505,6 +4505,10 @@ static void run_state_machine(struct tcpm_port *port)
tcpm_ams_start(port, HARD_RESET);
break;
case HARD_RESET_START:
if (port->prev_state == SNK_NEGOTIATE_CAPABILITIES){
usb_power_delivery_unregister_capabilities(port->partner_source_caps);
port->partner_source_caps = NULL;
}
port->sink_cap_done = false;
if (port->tcpc->enable_frs)
port->tcpc->enable_frs(port->tcpc, false);
Expand Down

0 comments on commit 5d7341f

Please sign in to comment.