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

Commit 2e9993ff authored by Devdutt Patnaik's avatar Devdutt Patnaik
Browse files

usb: f_gsi: Send Function Suspend state to GSI EP OP for suspend



We need to skip checking for link state being in U3
when we receive a Function Suspend. Pass in this information
to GSI EP OP that checks if we are good to suspend channels
with IPA. We skip the check for U3 if we are handling Function
Suspend and check for U3 when we are handling Bus Suspend.

CRs-Fixed: 966352
Change-Id: I29ee0326edbe33b02884495ddc89484bef21e7e0
Signed-off-by: default avatarDevdutt Patnaik <dpatnaik@codeaurora.org>
parent 073d2892
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -655,10 +655,11 @@ static void ipa_disconnect_work_handler(struct gsi_data_port *d_port)
static int ipa_suspend_work_handler(struct gsi_data_port *d_port)
{
	int ret = 0;
	bool block_db;
	bool block_db, f_suspend;
	struct f_gsi *gsi = d_port_to_gsi(d_port);

	if (!usb_gsi_ep_op(gsi->d_port.in_ep, NULL,
	f_suspend = gsi->function.func_wakeup_allowed;
	if (!usb_gsi_ep_op(gsi->d_port.in_ep, (void *) &f_suspend,
				GSI_EP_OP_CHECK_FOR_SUSPEND)) {
		ret = -EFAULT;
		goto done;