mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 02:23:05 +00:00
Revert "usb: typec: tcpm: fix cc role at port reset"
This reverts commit1e35f07439. Given that ERROR_RECOVERY calls into PORT_RESET for Hi-Zing the CC pins, setting CC pins to default state during PORT_RESET breaks error recovery. 4.5.2.2.2.1 ErrorRecovery State Requirements The port shall not drive VBUS or VCONN, and shall present a high-impedance to ground (above zOPEN) on its CC1 and CC2 pins. Hi-Zing the CC pins is the inteded behavior for PORT_RESET. CC pins are set to default state after tErrorRecovery in PORT_RESET_WAIT_OFF. 4.5.2.2.2.2 Exiting From ErrorRecovery State A Sink shall transition to Unattached.SNK after tErrorRecovery. A Source shall transition to Unattached.SRC after tErrorRecovery. Cc: [email protected] Cc: Frank Wang <[email protected]> Fixes:1e35f07439("usb: typec: tcpm: fix cc role at port reset") Signed-off-by: Badhri Jagan Sridharan <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
032178972f
commit
b717dfbf73
@@ -4876,8 +4876,7 @@ static void run_state_machine(struct tcpm_port *port)
|
||||
break;
|
||||
case PORT_RESET:
|
||||
tcpm_reset_port(port);
|
||||
tcpm_set_cc(port, tcpm_default_state(port) == SNK_UNATTACHED ?
|
||||
TYPEC_CC_RD : tcpm_rp_cc(port));
|
||||
tcpm_set_cc(port, TYPEC_CC_OPEN);
|
||||
tcpm_set_state(port, PORT_RESET_WAIT_OFF,
|
||||
PD_T_ERROR_RECOVERY);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user