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

Commit d73672e1 authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: f_gsi: Update remote wakeup status for high speed mode



Call usb_get_remote_wakeup_status() API when enumerated with USB
high speed to get remote wakeup supported by connected host or not
for making decision to suspend or disconnect IPA GSI channel.

Change-Id: I9970d4958af366c33b3311df72d404213b097237
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent af88d5f8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -39,6 +39,9 @@ static inline bool usb_gsi_remote_wakeup_allowed(struct usb_function *f)

	if (f->config->cdev->gadget->speed >= USB_SPEED_SUPER)
		remote_wakeup_allowed = gsi->func_wakeup_allowed;
	else
		remote_wakeup_allowed =
			usb_get_remote_wakeup_status(f->config->cdev->gadget);

	log_event_dbg("%s: remote_wakeup_allowed:%s", __func__,
			(remote_wakeup_allowed ? "true" : "false"));