Skip to content
Snippets Groups Projects
Commit 4ed94685 authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan Committed by Badhri Jagan Sridharan
Browse files

usb: tcpm: cleanup IsPRSwap flag


Setting the flag in PR_SWAP_ACCEPT but not in PR_SWAP_SEND,
will exclude all role_swaps initiated locally. Also, it is
consistent making the flag false in PR_SWAP_SEND_TIMEOUT
as it was not set in PR_SWAP_SEND in the first place.
PR_SWAP always starts with PR_SWAP_START state. Hence, set
the flag here. Also clear the flag if TCPM enters error
recovery.

Bug: 62492793
Signed-off-by: default avatarBadhri Jagan Sridharan <Badhri@google.com>
parent eebfb52f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment