From: Roger Quadros <rogerq@kernel.org>
To: Elson Roy Serrao <quic_eserrao@quicinc.com>,
Thinh.Nguyen@synopsys.com, gregkh@linuxfoundation.org,
felipe.balbi@linux.intel.com, surong.pang@unisoc.com
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
quic_wcheng@quicinc.com, quic_jackp@quicinc.com,
stable@vger.kernel.org
Subject: Re: [PATCH] usb: dwc3: Properly handle processing of pending events
Date: Wed, 2 Aug 2023 17:34:22 +0300 [thread overview]
Message-ID: <50b82871-6308-21e1-77db-0c8793df196d@kernel.org> (raw)
In-Reply-To: <20230801192658.19275-1-quic_eserrao@quicinc.com>
On 01/08/2023 22:26, Elson Roy Serrao wrote:
> If dwc3 is runtime suspended we defer processing the event buffer
> until resume, by setting the pending_events flag. Set this flag before
> triggering resume to avoid race with the runtime resume callback.
>
> While handling the pending events, in addition to checking the event
> buffer we also need to process it. Handle this by explicitly calling
> dwc3_thread_interrupt(). Also balance the runtime pm get() operation
> that triggered this processing.
>
> Cc: stable@vger.kernel.org
> Fixes: fc8bb91bc83e ("usb: dwc3: implement runtime PM")
> Signed-off-by: Elson Roy Serrao <quic_eserrao@quicinc.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
next prev parent reply other threads:[~2023-08-02 14:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-01 19:26 Elson Roy Serrao
2023-08-02 0:11 ` Thinh Nguyen
2023-08-02 14:34 ` Roger Quadros [this message]
2023-08-02 1:39 庞苏荣 (Surong Pang)
2023-08-02 14:37 ` Roger Quadros
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=50b82871-6308-21e1-77db-0c8793df196d@kernel.org \
--to=rogerq@kernel.org \
--cc=Thinh.Nguyen@synopsys.com \
--cc=felipe.balbi@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=quic_eserrao@quicinc.com \
--cc=quic_jackp@quicinc.com \
--cc=quic_wcheng@quicinc.com \
--cc=stable@vger.kernel.org \
--cc=surong.pang@unisoc.com \
/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
all inboxes | Powered by JetHome®