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: Devdutt Patnaik <dpatnaik@codeaurora.org>
This commit is contained in:
parent
5028f26ab3
commit
26f78f4bc6
1 changed files with 3 additions and 2 deletions
|
@ -467,10 +467,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;
|
||||
|
|
Loading…
Add table
Reference in a new issue