Skip to content
Commit 23b1d2d9 authored by Ondrej Jirman's avatar Ondrej Jirman Committed by Greg Kroah-Hartman
Browse files

Revert "usb: typec: tcpm: reset counter when enter into unattached state after try role"

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 2d6d8012.

Cc: stable@vger.kernel.org
Fixes: 2d6d8012

 ("usb: typec: tcpm: reset counter when enter into unattached state after try role")
Signed-off-by: default avatarOndrej Jirman <megi@xff.cz>
Link: https://lore.kernel.org/r/20240217162023.1719738-1-megi@xff.cz
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 858a74cb
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