Commit 56277035 authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan Committed by Greg Kroah-Hartman

staging: typec: tcpm: Switch to PORT_RESET instead of SNK_UNATTACHED

When VBUS is not discovered within PD_T_PS_SOURCE_ON although Rp
is detected on CC, TCPM switches the port to SNK_UNATTACHED
state. SNK_UNATTACHED, however does not force TYPEC_CC_OPEN which
makes the partner(source) to think that it is connected.

To overcome this issue, force the port into PORT_RESET state
to make sure the CC lines are open.
Signed-off-by: default avatarBadhri Jagan Sridharan <Badhri@google.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f451ac9e
...@@ -2385,7 +2385,7 @@ static void run_state_machine(struct tcpm_port *port) ...@@ -2385,7 +2385,7 @@ static void run_state_machine(struct tcpm_port *port)
0); 0);
else else
/* Wait for VBUS, but not forever */ /* Wait for VBUS, but not forever */
tcpm_set_state(port, SNK_UNATTACHED, PD_T_PS_SOURCE_ON); tcpm_set_state(port, PORT_RESET, PD_T_PS_SOURCE_ON);
break; break;
case SRC_TRY: case SRC_TRY:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment