Re: [PATCH v5 07/11] usb: dwc3: qcom: Recover controller state after power loss in system suspend

From: Faisal Hassan

Date: Thu Dec 03 2026 - 02:05:10 EST


On 26-11-2026 03:22 pm, Peter Chen wrote:
On 26-11-23 16:17:22, Faisal Hassan wrote:
[...]
@@ -741,6 +773,9 @@ static int dwc3_qcom_probe(struct platform_device *pdev)
probe_data.ignore_clocks_and_resets = true;
probe_data.properties = DWC3_DEFAULT_PROPERTIES;
probe_data.properties.skip_phy_init = true;
+ /* Controller loses power on system suspend, even with wakeup enabled */
+ probe_data.properties.needs_full_reinit = qcom->power_lost_in_suspend;
+ probe_data.properties.xhci_reset_on_resume = qcom->power_lost_in_suspend;

There is a xhci_power_lost flag support patch for dwc3 at [1], do we still need
"xhci_reset_on_resume" or could totally re-use it?

[1] https://lore.kernel.org/all/20261125181116.121-1-26rote@xxxxxxxxx/

Peter

Hi Peter,

Thanks for pointing it out. We can reuse it fully. xhci_power_lost does what xhci_reset_on_resume was doing here, so in v6 I will drop the reset-on-resume plumbing (v5 5/11 and 6/11) and base the series on that patch.

Thanks,
Faisal