Re: [PATCH v4 0/2] usb: dwc3: qcom: Keep USB 2.0 working in DisplayPort-only modes
From: joonhoekim
Date: Thu Dec 03 2026 - 07:37:07 EST
From: Joonhoe Kim <26rote@xxxxxxxxx>
On Thu, Dec 03, 2026 at 04:21:07PM +0800, Peter Chen wrote:
> would you accept the notify solution from PHY to Controller? If you
> accept, do you want to implement by yourself or could accept that we
> (qcom) implement it?
Hi Peter,
Yes, I'm fine with the PHY notifying the controller, and please go
ahead and implement it on your side. I'll drop this series. The
Kaanapali DTS patch that adds "mode-switch" to the controller node [1]
is then not needed either, and the same goes for Tapas Rana's Glymur
patch [4].
A few things from testing this series that may save you time:
- On SM7250 the clock selection in QSCRATCH is lost in system suspend
(Filippo's "usb: dwc3: qcom: Restore UTMI PIPE clock on resume" [2]),
so the controller has to apply the selection again on resume if the
PHY is still in a DP-only mode.
- Plugging the monitor in during s2idle woke the tablet, and in both
tries the new mode arrived after the controller had resumed. I didn't
see a switch while the controller was suspended, but I don't know
that this order holds everywhere.
- "phy: qcom: qmp-combo: Leave the USB PCS alone in DP-only mode" [3]
(not yet applied) changes how qmp_combo_reconfigure_phy() powers off
the USB PCS. qmp_combo_typec_mux_set() calls it, so it is next to
where the notifications would go.
I can test it on the Lenovo Y700 Gen 5 (TB323FU, Kaanapali) with the
setups from v4: a USB-C monitor with an MST hub and a USB 2.0 hub
(DisplayPort over four lanes), s2idle with the monitor attached,
plugging it in during s2idle, and a USB-C hub with DisplayPort and
USB 3. If you'd like it tested there, Cc me when it's posted.
[1] https://lore.kernel.org/all/20261112113921.1143-1-26rote@xxxxxxxxx/
[2] https://lore.kernel.org/all/20261027-dwc3-utmi-resume-v1-1-ca9f0aa65783@xxxxxxxxx/
[3] https://lore.kernel.org/all/20261103135051.1668-1-26rote@xxxxxxxxx/
[4] https://lore.kernel.org/all/20261117113834.925310-1-tapas.rana@xxxxxxxxxxxxxxxx/
Thanks,
Joonhoe Kim