From: Greg KH <greg@kroah.com>
To: Pawel Laszczak <pawell@cadence.com>
Cc: stable@vger.kernel.org
Subject: Re: [PATCH] usb: cdns3: fix race condition before setting doorbell
Date: Thu, 30 Sep 2021 12:03:22 +0200 [thread overview]
Message-ID: <YVWLamYUlXMmjdqq@kroah.com> (raw)
In-Reply-To: <20210930094217.23316-1-pawell@gli-login.cadence.com>
On Thu, Sep 30, 2021 at 11:42:17AM +0200, Pawel Laszczak wrote:
> From: Pawel Laszczak <pawell@cadence.com>
>
> commit b69ec50b3e55c4b2a85c8bc46763eaf33060584 upstream
>
> For DEV_VER_V3 version there exist race condition between clearing
> ep_sts.EP_STS_TRBERR and setting ep_cmd.EP_CMD_DRDY bit.
> Setting EP_CMD_DRDY will be ignored by controller when
> EP_STS_TRBERR is set. So, between these two instructions we have
> a small time gap in which the EP_STS_TRBERR can be set. In such case
> the transfer will not start after setting doorbell.
>
> Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver")
> cc: <stable@vger.kernel.org> # 5.4.x
> Tested-by: Aswath Govindraju <a-govindraju@ti.com>
> Reviewed-by: Aswath Govindraju <a-govindraju@ti.com>
> Signed-off-by: Pawel Laszczak <pawell@cadence.com>
> ---
> drivers/usb/cdns3/gadget.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
What kernel(s) are you wanting this applied to?
thanks,
greg k-h
next prev parent reply other threads:[~2021-09-30 10:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-30 9:42 [PATCH] usb: cdns3: fix race condition before setting doorbell Pawel Laszczak
2021-09-30 10:03 ` Greg KH [this message]
2021-09-30 10:22 ` Pawel Laszczak
2021-10-01 16:52 ` Sasha Levin
2021-10-04 4:00 ` Pawel Laszczak
-- strict thread matches above, loose matches on Subject: below --
2021-09-07 6:26 Pawel Laszczak
2021-09-07 7:28 ` Aswath Govindraju
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=YVWLamYUlXMmjdqq@kroah.com \
--to=greg@kroah.com \
--cc=pawell@cadence.com \
--cc=stable@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.