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

Commit c62300ab authored by Chandana Kishori Chiluveru's avatar Chandana Kishori Chiluveru Committed by Rohith Kollalsi
Browse files

usb: f_gsi: Disable function remote wake-up capability for DPL



If driver allows function remote wake-up for DPL interface.
windows10/8 host may suspend the DPL function in SS mode.
When we receive Function Suspend for usb interface. gsi_suspend()
blocks ringing of doorbell by USB controller to IPA GSI and schedule
usb_ipa_w work with event EVNT_SUSPE. This will block the GSI to IPA
path for other GSI interfaces in the compositions.

Hence disable function remote wake-up capability for DPL interface.

Change-Id: Ic2da104a48bc14aa2f2912544a9b5fa1c5de8596
Signed-off-by: default avatarChandana Kishori Chiluveru <cchiluve@codeaurora.org>
parent 59ba7003
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2613,6 +2613,10 @@ static int gsi_get_status(struct usb_function *f)
#ifdef CONFIG_USB_FUNC_WAKEUP_SUPPORTED
	struct f_gsi *gsi = func_to_gsi(f);

	/* Disable function remote wake-up for DPL interface */
	if (gsi->prot_id == IPA_USB_DIAG)
		return 0;

	return (gsi->func_wakeup_allowed ? USB_INTRF_STAT_FUNC_RW : 0) |
		USB_INTRF_STAT_FUNC_RW_CAP;
#else