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

Commit ddd20980 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents aeffceb7 c62300ab
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2644,6 +2644,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