mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
Merge "usb: f_cdev: Fix failure in function resume in f_cdev"
This commit is contained in:
commit
ffd83d5109
1 changed files with 5 additions and 5 deletions
|
|
@ -610,11 +610,11 @@ static int usb_cser_func_suspend(struct usb_function *f, u8 options)
|
|||
if (!port->func_is_suspended) {
|
||||
usb_cser_suspend(f);
|
||||
port->func_is_suspended = true;
|
||||
} else {
|
||||
if (port->func_is_suspended) {
|
||||
port->func_is_suspended = false;
|
||||
usb_cser_resume(f);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (port->func_is_suspended) {
|
||||
port->func_is_suspended = false;
|
||||
usb_cser_resume(f);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue