Skip to content
Commit 1afd40d2 authored by Jack Pham's avatar Jack Pham
Browse files

usb: pd: avoid missed connection notification



In the disconnect handler of usbpd_sm(), pd->current_pr is
already set to PR_NONE, so there is no reason to set it again.
This helps for cases where a quick reconnection notification
just arrived and sets the variable to either PR_SRC or PR_SINK
but the disconnect handling clears it resulting in nothing to
be done the next time work is scheduled.

Change-Id: Ia88520149905989a3b3efb94361670760b79c0bd
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 8e822907
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment