Merge "usb: function: Clear function suspend related flags on config reset" into msm-5.4

This commit is contained in:
Package Warehouse Build User 2021-02-24 06:28:13 -08:00 • committed by Gerrit - the friendly Code Review server
commit b9d505e558
2 changed files with 7 additions and 0 deletions

View file

@ -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;

View file

@ -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__);