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

Skip to content
Commit 9c5283df authored by Mayank Rana's avatar Mayank Rana
Browse files

dwc3: gadget: Check for endpoint status before doing remote wakeup



If USB function driver is trying to queue USB request on endpoint,
we invoke remote wakeup functionality before queueing it if USB
device is already suspended. USB device is into suspended state
if USB cable is not being connected or USB is in bus suspend state.
With remote wakeup we are incrementing usb device's pm usage count
which is causing usb device not going into LPM later. Hence fix
this issue by checking endpoint enable status and if it is disable,
don't perform remote wakeup functionality.

CRs-Fixed: 723240
Change-Id: I70afec911f2ea05aeb787f8d5b0a6c2d0e517e2b
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent c1a5a21e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment