From: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
To: Frank Li <Frank.Li@nxp.com>
Cc: "ran.wang_1@nxp.com" <ran.wang_1@nxp.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"open list:DESIGNWARE USB3 DRD IP DRIVER"
<linux-usb@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>,
"balbi@kernel.org" <balbi@kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"mark.rutland@arm.com" <mark.rutland@arm.com>,
"pku.leo@gmail.com" <pku.leo@gmail.com>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"sergei.shtylyov@cogentembedded.com"
<sergei.shtylyov@cogentembedded.com>
Subject: Re: [PATCH 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot
Date: Sat, 20 Jan 2024 00:55:54 +0000 [thread overview]
Message-ID: <20240120005552.pxlofaaoovxjt2oj@synopsys.com> (raw)
In-Reply-To: <20240120005056.o52hqn2sershhm76@synopsys.com>
On Sat, Jan 20, 2024, Thinh Nguyen wrote:
> > +
> > static int dwc3_host_get_irq(struct dwc3 *dwc)
> > {
> > struct platform_device *dwc3_pdev = to_platform_device(dwc->dev);
> > @@ -66,6 +105,13 @@ int dwc3_host_init(struct dwc3 *dwc)
> > int ret, irq;
> > int prop_idx = 0;
> >
> > + /*
> > + * We have to power off all Root hub ports immediately after DWC3 set
> > + * to host mode to avoid VBUS glitch happen when xhci get reset later.
> > + */
> > + if (dwc->host_vbus_glitches)
> > + dwc3_power_off_all_roothub_ports(dwc);
> > +
>
> It's part of the dwc3_host_init(), but don't do this in
> dwc3_host_get_irq(). Place it where it makes sense.
Ignore this comment, I thought it's called from dwc3_host_get_irq(), but
it's not.
BR,
Thinh
>
> > irq = dwc3_host_get_irq(dwc);
> > if (irq < 0)
> > return irq;
> > --
> > 2.34.1
> >
>
next prev parent reply other threads:[~2024-01-20 0:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-19 21:31 [PATCH 1/2] dt-bindings: usb: dwc3: Add snps,host-vbus-glitches avoiding vbus glitch Frank Li
2024-01-19 21:31 ` [PATCH 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot Frank Li
2024-01-20 0:51 ` Thinh Nguyen
2024-01-20 0:55 ` Thinh Nguyen [this message]
2024-01-20 2:00 ` Frank Li
2024-01-24 17:36 ` [PATCH 1/2] dt-bindings: usb: dwc3: Add snps,host-vbus-glitches avoiding vbus glitch Conor Dooley
2024-01-24 17:47 ` Frank Li
2024-01-24 17:59 ` Conor Dooley
2024-01-24 19:17 ` Frank Li
2024-01-25 17:43 ` Conor Dooley
2024-01-26 4:06 ` Frank Li
2024-01-26 16:34 ` Conor Dooley
2024-01-30 18:13 ` Rob Herring
2024-01-30 19:29 ` Frank Li
2024-02-01 1:31 ` Thinh Nguyen
-- strict thread matches above, loose matches on Subject: below --
2019-01-16 6:48 [PATCH 0/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset Ran Wang
2019-01-16 6:48 ` [PATCH 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot Ran Wang
2019-01-16 8:21 ` Felipe Balbi
2019-01-16 13:11 ` kbuild test robot
2019-02-15 8:39 ` Ran Wang
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=20240120005552.pxlofaaoovxjt2oj@synopsys.com \
--to=thinh.nguyen@synopsys.com \
--cc=Frank.Li@nxp.com \
--cc=balbi@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pku.leo@gmail.com \
--cc=ran.wang_1@nxp.com \
--cc=robh+dt@kernel.org \
--cc=sergei.shtylyov@cogentembedded.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;
as well as URLs for NNTP newsgroup(s).