Re: [PATCH 0/1] usb: dwc3: qcom: Keep wakeup option default off
From: Peter Chen
Date: Tue Nov 24 2026 - 23:47:51 EST
On 26-11-24 03:11:17, Thinh Nguyen wrote:
> (Sorry for the delay in replying. Got held up with internal tasks.)
>
> On Thu, Nov 12, 2026, Peter Chen wrote:
> > When talking about whole system wakeup chain for USB:
> > dwc3 -> xhci-plat -> roothub -> downstream device
> > it usually depends on user program (per user option), but not bind to
> > kernel driver, considering some situations that USB device are disconnected
> > and re-connected, its wakeup option may need to re-set, and one typical
> > solution is enable wakeup options before system suspend.
>
> I see. Looks like dwc->sys_wakeup is already false since
> device_init_wakeup() is called after dwc3_core_probe(). Can we fix that
> separately so xhci follows power/wakeup at suspend?
>
Sure, but first, we need to align what behaviours we want:
1. Who decides dwc3 core has wakeup capabilities?
dwc3 core or glue layer driver?
2. How to decide dwc3 core has wakeup capabilities?
Has wakeup capabilities by default (xhci/cadence/chipidea) or depends on
DT/ACPI firmware setting like "wakeup-source" property?
3. Default on or off for wakeup option (value for power/wakeup)
4. xhci-plat has wakeup capabilities by default, we only need to
set its wakeup option as default on if dwc3 core does the same thing
for question 3.
> >
> > Yes, it affects all Qcom platforms, that's why I sent RFC patch for it
> > last week, most probably it have "regression" since it may never
> > be tested under the situation the PHY is powered down at suspend and
> > power on at resume, but that kinds of "regression" is the bug we need
> > to fix, right?
>
> Yes, but USB wakeup would also stop working on existing platforms by
> default. Do we have acks from the qcom maintainers on this policy?
Bjorn, would you please share your opinion for it?
>
> >
> > I have tested at Glymur CRD, external ports work (USB3/USB2), but
> > the port with USB2 Footprint IC (USB2) hard-wired does not work
> > sometimes, maybe the initial sequence between power-on and suspend/resume
> > are different, it needs to debug more.
>
> Which other platforms can you test? I'm fine with the change if it's
> tested enough across platforms, or if the affected platforms have a way
> to keep the current default.
>
There are 10+ SoCs enable USB wakeup default on for Qcom, I think it is
hard for without function regression we keep PHY off during the suspend,
although it also should be fixed. Let's see Bjorn's opinion?
--
Thanks,
Peter Chen