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

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

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

parents 81ecb311 785ef0e9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2574,6 +2574,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 == IPA_USB_DIAG)
		return 0;

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