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

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

Merge "usb: gsi: Prevent function remote-wakeup without function suspend"

parents c544f44c ad5e4997
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -92,7 +92,8 @@ static inline bool usb_gsi_remote_wakeup_allowed(struct usb_function *f)
	struct f_gsi *gsi = func_to_gsi(f);

	if (f->config->cdev->gadget->speed >= USB_SPEED_SUPER)
		remote_wakeup_allowed = f->func_wakeup_allowed;
		remote_wakeup_allowed =
			 f->func_is_suspended ? f->func_wakeup_allowed : false;
	else
		remote_wakeup_allowed = f->config->cdev->gadget->remote_wakeup;