From: Maxim Devaev <mdevaev@gmail.com>
To: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
Subject: Re: usb: dwc2: Problem with remote wakeup implementation
Date: Wed, 6 Apr 2022 12:38:26 +0300 [thread overview]
Message-ID: <20220406123826.3065963c@reki> (raw)
In-Reply-To: <04a5b3ac-8d38-d033-89be-371716873b4c@synopsys.com>
В Mon, 4 Apr 2022 07:30:25 +0000
Minas Harutyunyan <Minas.Harutyunyan@synopsys.com> пишет:
> Hi Maxim,
>
> According databook RmtWkUpSig bit description below. You should also
> consider LPM state.
>
> Remote Wakeup Signaling (RmtWkUpSig)
> When the application sets this bit, the core initiates remote
> signaling to wake up the USB host. The application must Set this bit
> to instruct the core to exit the Suspend state. As specified in the
> USB 2.0 specification, the application must clear this bit 1-15 ms
> after setting it.
> If LPM is enabled and the core is in the L1 (Sleep) state, when the
> application sets this bit, the core initiates L1 remote signaling to
> wake up the USB host. The application must set this bit to instruct
> the core to exit the Sleep state. As specified in the LPM
> specification, the hardware automatically clears this bit 50
> microseconds (TL1DevDrvResume) after being set by the
> application. The application must not set this bit when GLPMCFG
> bRemoteWake from the previous LPM transaction is zero.
>
> If it will not help, please check power status of core while resuming:
> hibernated, in partial power down, etc.
>
> Thanks,
> Minas
>
Thank you so much! This is very useful.
I fixed the problem, it was related with the new clock gating code.
I'll try to make a clear patch and submit it to the kernel.
prev parent reply other threads:[~2022-04-06 13:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-23 22:24 usb: dwc2: Problem with remote wakeup implementation Maxim Devaev
2022-04-04 7:30 ` Minas Harutyunyan
2022-04-06 9:38 ` Maxim Devaev [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220406123826.3065963c@reki \
--to=mdevaev@gmail.com \
--cc=Minas.Harutyunyan@synopsys.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox