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

Commit 38d32df5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 0913a67e 983e5649
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2696,6 +2696,11 @@ static void gsi_resume(struct usb_function *f)
static int gsi_get_status(struct usb_function *f)
{
	unsigned remote_wakeup_en_status = f->func_wakeup_allowed ? 1 : 0;
	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 (remote_wakeup_en_status << FUNC_WAKEUP_ENABLE_SHIFT) |
		(1 << FUNC_WAKEUP_CAPABLE_SHIFT);