]> Git Repo - linux.git/commitdiff
Revert "usb: typec: tcpm: reset counter when enter into unattached state after try...
authorOndrej Jirman <[email protected]>
Sat, 17 Feb 2024 16:20:21 +0000 (17:20 +0100)
committerGreg Kroah-Hartman <[email protected]>
Mon, 19 Feb 2024 08:30:42 +0000 (09:30 +0100)
The reverted commit makes the state machine only ever go from SRC_ATTACH_WAIT
to SNK_TRY in endless loop when toggling. After revert it goes to SRC_ATTACHED
after initially trying SNK_TRY earlier, as it should for toggling to ever detect
the power source mode and the port is again able to provide power to attached
power sinks.

This reverts commit 2d6d80127006ae3da26b1f21a65eccf957f2d1e5.

Cc: [email protected]
Fixes: 2d6d80127006 ("usb: typec: tcpm: reset counter when enter into unattached state after try role")
Signed-off-by: Ondrej Jirman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/typec/tcpm/tcpm.c

index f7d7daa60c8dc98b04d29f10b2e1377b02124d61..295ae7eb912c8da587c0fc03c51ae93a3993c517 100644 (file)
@@ -3743,9 +3743,6 @@ static void tcpm_detach(struct tcpm_port *port)
        if (tcpm_port_is_disconnected(port))
                port->hard_reset_count = 0;
 
-       port->try_src_count = 0;
-       port->try_snk_count = 0;
-
        if (!port->attached)
                return;
 
This page took 0.079523 seconds and 4 git commands to generate.