diff options
| author | Prashanth K <[email protected]> | 2024-08-28 06:43:02 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-09-03 08:03:06 +0000 |
| commit | 00dcf2fa449f23a263343d7fe051741bdde65d0b (patch) | |
| tree | 45069781f210e60743663afb43e4e1d6d0b4f1b2 /fs/jbd2/commit.c | |
| parent | Linux 6.11-rc6 (diff) | |
| download | kernel-00dcf2fa449f23a263343d7fe051741bdde65d0b.tar.gz kernel-00dcf2fa449f23a263343d7fe051741bdde65d0b.zip | |
usb: dwc3: Avoid waking up gadget during startxfer
When operating in High-Speed, it is observed that DSTS[USBLNKST] doesn't
update link state immediately after receiving the wakeup interrupt. Since
wakeup event handler calls the resume callbacks, there is a chance that
function drivers can perform an ep queue, which in turn tries to perform
remote wakeup from send_gadget_ep_cmd(STARTXFER). This happens because
DSTS[[21:18] wasn't updated to U0 yet, it's observed that the latency of
DSTS can be in order of milli-seconds. Hence avoid calling gadget_wakeup
during startxfer to prevent unnecessarily issuing remote wakeup to host.
Fixes: c36d8e947a56 ("usb: dwc3: gadget: put link to U0 before Start Transfer")
Cc: [email protected]
Suggested-by: Thinh Nguyen <[email protected]>
Signed-off-by: Prashanth K <[email protected]>
Acked-by: Thinh Nguyen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
