mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
Merge "usb: function: Clear function suspend related flags on config reset" into msm-5.4
This commit is contained in:
commit
b9d505e558
2 changed files with 7 additions and 0 deletions
|
|
@ -583,6 +583,8 @@ static void usb_cser_disable(struct usb_function *f)
|
|||
"port(%s) deactivated\n", port->name);
|
||||
|
||||
usb_cser_disconnect(port);
|
||||
port->func_is_suspended = false;
|
||||
port->func_wakeup_allowed = false;
|
||||
port->func_wakeup_pending = false;
|
||||
usb_ep_disable(port->port_usb.notify);
|
||||
port->port_usb.notify->driver_data = NULL;
|
||||
|
|
|
|||
|
|
@ -2596,6 +2596,11 @@ static void gsi_disable(struct usb_function *f)
|
|||
/* send 0 len pkt to qti/qbi/gps to notify state change */
|
||||
gsi_ctrl_send_cpkt_tomodem(gsi, NULL, 0);
|
||||
gsi->c_port.notify_req_queued = false;
|
||||
|
||||
gsi->func_is_suspended = false;
|
||||
gsi->func_wakeup_allowed = false;
|
||||
gsi->func_wakeup_pending = false;
|
||||
|
||||
/* Disable Data Path - only if it was initialized already (alt=1) */
|
||||
if (!gsi->data_interface_up) {
|
||||
log_event_dbg("%s: data intf is closed", __func__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue