mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
Merge "usb: gsi: Fix runtime PM usage count for MBIM interface"
This commit is contained in:
commit
270ab53fac
1 changed files with 6 additions and 2 deletions
|
|
@ -2580,7 +2580,11 @@ static void gsi_suspend(struct usb_function *f)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!gsi->data_interface_up) {
|
||||
/*
|
||||
* GPS doesn't use any data interface, hence bail out as there is no
|
||||
* GSI specific handling needed.
|
||||
*/
|
||||
if (gsi->prot_id == IPA_USB_GPS) {
|
||||
log_event_dbg("%s: suspend done\n", __func__);
|
||||
return;
|
||||
}
|
||||
|
|
@ -2614,7 +2618,7 @@ static void gsi_resume(struct usb_function *f)
|
|||
/* Check any pending cpkt, and queue immediately on resume */
|
||||
gsi_ctrl_send_notification(gsi);
|
||||
|
||||
if (!gsi->data_interface_up) {
|
||||
if (gsi->prot_id == IPA_USB_GPS) {
|
||||
log_event_dbg("%s: resume done\n", __func__);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue