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

Commit fbe379cb 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 855b1c96 4824a573
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2565,6 +2565,11 @@ static void gsi_resume(struct usb_function *f)
static int gsi_get_status(struct usb_function *f)
{
	unsigned int 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 == USB_PROT_DIAG_IPA)
		return 0;

	return (remote_wakeup_en_status << FUNC_WAKEUP_ENABLE_SHIFT) |
		(1 << FUNC_WAKEUP_CAPABLE_SHIFT);