usb: f_gsi: Initiate remote-wakeup if notification already queued

Selective suspend of device (with remote-wakeup enabled) by host
could race with device driver queuing a notification request on
interrupt endpoint. Driver currently issues remote wakeup if at
the time of queueing notification request device was suspended.
If host suspends device right after driver queues notification
request then device driver fails to initiate remote-wakeup.
Fix this by initiating remote wakeup immediately after suspend
if notification request already queued to controller.

Change-Id: I24ce5d8302a70a1f5f68c54af0fef9f145adb97b
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
1 file changed