In SNK_HARD_RESET_SINK_ON, if the source disconnected, we should set
state to be unattached state intead of startup sink.
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
* to PE_SNK_Transition_to_default.
*/
tcpm_set_attached_state(port, true);
- tcpm_set_state(port, SNK_STARTUP, 0);
+ if (tcpm_port_is_disconnected(port))
+ tcpm_set_state(port, unattached_state(port), 0);
+ else
+ tcpm_set_state(port, SNK_STARTUP, 0);
break;
/* Soft_Reset states */