Linux USB
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Prashanth K <prashanth.k@oss.qualcomm.com>
Cc: Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
	Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>,
	Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: dwc3: qcom: Add shutdown handler
Date: Fri, 25 Jul 2025 13:59:39 +0200	[thread overview]
Message-ID: <2025072512-hertz-dentist-67dc@gregkh> (raw)
In-Reply-To: <852ff03d-84cf-42f1-a428-ec747bea835e@oss.qualcomm.com>

On Fri, Jul 25, 2025 at 03:28:12PM +0530, Prashanth K wrote:
> 
> 
> On 7/25/2025 2:18 PM, Greg Kroah-Hartman wrote:
> > On Fri, Jul 25, 2025 at 11:51:58AM +0530, Prashanth K wrote:
> >> Currently during system reboot, SMMU disables its translations
> >> while devices like USB may still be actively using DMA buffers.
> >> This can lead to NOC errors and system crashes due to invalid
> >> memory access.
> >>
> >> Address this by adding a shutdown callback to dwc3-qcom, which
> >> ensures proper teardown of UDC stack and prevents DWC3 controller
> >> from accessing memory after SMMU translation is disabled. Reuse
> >> the existing remove callback for this purpose.
> >>
> >> Signed-off-by: Prashanth K <prashanth.k@oss.qualcomm.com>
> >> ---
> >>  drivers/usb/dwc3/dwc3-qcom.c | 8 ++++++--
> >>  1 file changed, 6 insertions(+), 2 deletions(-)
> > 
> > What commit id does this fix?  Or is this just a new feature?
> > 
> > thanks,
> > 
> > greg k-h
> 
> I didn't Fixes tag because a small dilemma. This patch is rebased on top
> of the flattening series, specifically commit 1881a32fe14d ("usb: dwc3:
> qcom: Transition to flattened model").
> However, I don't think that this commit caused this issue.
> 
> Let me know if you want the Fixes tag.

If you don't need/want this backported to any stable tree, then leave it
as-is.  Your choice.


  reply	other threads:[~2025-07-25 11:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-25  6:21 [PATCH] usb: dwc3: qcom: Add shutdown handler Prashanth K
2025-07-25  8:48 ` Greg Kroah-Hartman
2025-07-25  9:58   ` Prashanth K
2025-07-25 11:59     ` Greg Kroah-Hartman [this message]
2025-07-28  5:21       ` Prashanth K
2025-07-29 22:19 ` Thinh Nguyen

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=2025072512-hertz-dentist-67dc@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=Thinh.Nguyen@synopsys.com \
    --cc=bjorn.andersson@oss.qualcomm.com \
    --cc=krishna.kurapati@oss.qualcomm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=prashanth.k@oss.qualcomm.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