summaryrefslogtreecommitdiff
path: root/kernel/locking/mutex-debug.c
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2017-04-19 00:25:32 -0700
committerJack Pham <jackp@codeaurora.org>2017-04-19 00:29:35 -0700
commit439cb8107ff1d6572f60388b75bb704755c9fa74 (patch)
treeeddb941a969070c6852d2342ab7914c3f5f03c9f /kernel/locking/mutex-debug.c
parentce87c901721567907d20d8c8323dec3a55ce3741 (diff)
usb: pd: Re-check for disconnect after PR swap
During SNK->SRC PR Swap, the in_pr_swap flag is set and is used to ignore the Type-C disconnect notification from the charger since that is expected to happen. However, if the "sink connect" notification never arrives, the swap operation is incomplete, indicating the port partner has either disconnected or is unresponsive. But since the state machine ignored the disconnect, it continues until reaching SRC_DISABLED due to no response, and that is a dead-end state. Add one more check here to see if the CC state is still disconnected and set current_pr PR_NONE to get the state machine to process the disconnect. Similarly do this for PE_SRC_HARD_RESET as that is an extension of the above if a physical disconnect occurred after successful sending of capabilities but before receiving a request and the response timer times out. Again the disconnect notification during the previous swap was ignored and no new CC state change arrived. Change-Id: Ib28c541cff36a895f9a75cb67161dd116f3eb47f Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'kernel/locking/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions