diff options
| author | Jack Pham <jackp@codeaurora.org> | 2017-07-20 11:30:33 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-08-09 09:51:43 -0700 |
| commit | 3b399a415c4d438f8d093b35c34c2fe08871c2e7 (patch) | |
| tree | bdbb7dccc65db204ceee3be8b814716f58f0d710 /drivers/usb/class/cdc-acm.c | |
| parent | 603df3f744d9810e4065d549914b5182e129811b (diff) | |
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: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions
