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

Commit a1130e0c authored by Sriharsha Allenki's avatar Sriharsha Allenki Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: f_gps: Clear is_suspended flag on disable



In cases where host resets the function after suspend,
the resume is never called. In this case the is_suspended
flag is never cleared and if remote wakeup is not enabled
the function driver would never queue any response available
notifications.
Fix this by clearing the is_suspended flag on disable.

CRs-Fixed: 2128747
Change-Id: I9e627756009a53eba987b669acab7de004e347a0
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent 18a5ac12
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -413,6 +413,7 @@ static void gps_disable(struct usb_function *f)

	usb_ep_disable(dev->notify);
	dev->notify->driver_data = NULL;
	dev->is_suspended = false;

	atomic_set(&dev->online, 0);