Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fc56df3 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gsi: Enable host remote-wakeup capability for GPS function"

parents 6dd76c0d a3a1c272
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2679,6 +2679,7 @@ static void gsi_suspend(struct usb_function *f)
		return;
	}

	gsi->c_port.is_suspended = true;
	/*
	 * GPS doesn't use any data interface, hence bail out as there is no
	 * GSI specific handling needed.
@@ -2688,7 +2689,6 @@ static void gsi_suspend(struct usb_function *f)
		return;
	}

	gsi->c_port.is_suspended = true;
	block_db = true;
	usb_gsi_ep_op(gsi->d_port.in_ep, (void *)&block_db,
			GSI_EP_OP_SET_CLR_BLOCK_DBL);
@@ -2739,6 +2739,8 @@ static void gsi_resume(struct usb_function *f)
	/* Check any pending cpkt, and queue immediately on resume */
	gsi_ctrl_send_notification(gsi);

	gsi->rwake_inprogress = false;

	if (gsi->prot_id == IPA_USB_GPS) {
		log_event_dbg("%s: resume done\n", __func__);
		return;
@@ -2758,8 +2760,6 @@ static void gsi_resume(struct usb_function *f)
		gsi->params->state = RNDIS_DATA_INITIALIZED;
	}

	gsi->rwake_inprogress = false;

	post_event(&gsi->d_port, EVT_RESUMED);
	queue_delayed_work(gsi->d_port.ipa_usb_wq, &gsi->d_port.usb_ipa_w, 0);