Devicetree
 help / color / mirror / Atom feed
From: joonhoekim <26rote@gmail.com>
To: Peter Chen <peter.chen@oss.qualcomm.com>
Cc: Joonhoe Kim <26rote@gmail.com>,
	gregkh@linuxfoundation.org, Thinh.Nguyen@synopsys.com,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	andersson@kernel.org, konradybcio@kernel.org,
	heikki.krogerus@linux.intel.com, abel.vesa@oss.qualcomm.com,
	abelvesa@kernel.org, wesley.cheng@oss.qualcomm.com,
	krishna.kurapati@oss.qualcomm.com,
	konrad.dybcio@oss.qualcomm.com,
	dmitry.baryshkov@oss.qualcomm.com, neil.armstrong@linaro.org,
	val@packett.cool, balaji.kalkonda@oss.qualcomm.com,
	tvlad744@gmail.com, effeffe99@gmail.com,
	prashanth.k@oss.qualcomm.com, yongxing.mou@oss.qualcomm.com,
	tapas.rana@oss.qualcomm.com, vkoul@kernel.org,
	jack.pham@oss.qualcomm.com, linux-phy@lists.infradead.org,
	linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 0/2] usb: dwc3: qcom: Keep USB 2.0 working in DisplayPort-only modes
Date: Thu,  3 Dec 2026 21:36:50 +0900	[thread overview]
Message-ID: <20261203123651.1186-1-26rote@gmail.com> (raw)
In-Reply-To: <axEmc_IxQd70AERZ@hu-petche-lv.qualcomm.com>

From: Joonhoe Kim <26rote@gmail.com>

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@gmail.com/
[2] https://lore.kernel.org/all/20261027-dwc3-utmi-resume-v1-1-ca9f0aa65783@gmail.com/
[3] https://lore.kernel.org/all/20261103135051.1668-1-26rote@gmail.com/
[4] https://lore.kernel.org/all/20261117113834.925310-1-tapas.rana@oss.qualcomm.com/

Thanks,
Joonhoe Kim

      reply	other threads:[~2026-12-03 12:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 12:45 [PATCH v4 0/2] usb: dwc3: qcom: Keep USB 2.0 working in DisplayPort-only modes Joonhoe Kim
2026-11-19 12:45 ` [PATCH v4 1/2] dt-bindings: usb: qcom,snps-dwc3: Add mode-switch Joonhoe Kim
2026-11-19 12:45 ` [PATCH v4 2/2] usb: dwc3: qcom: Use the UTMI clock as PIPE clock in DisplayPort-only modes Joonhoe Kim
2026-11-20 15:07   ` Greg KH
2026-11-20 18:56     ` joonhoekim
2026-11-24  2:47 ` [PATCH v4 0/2] usb: dwc3: qcom: Keep USB 2.0 working " Peter Chen
2026-12-03  8:21   ` Peter Chen
2026-12-03 12:36     ` joonhoekim [this message]

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=20261203123651.1186-1-26rote@gmail.com \
    --to=26rote@gmail.com \
    --cc=Thinh.Nguyen@synopsys.com \
    --cc=abel.vesa@oss.qualcomm.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=balaji.kalkonda@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=effeffe99@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=jack.pham@oss.qualcomm.com \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krishna.kurapati@oss.qualcomm.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=peter.chen@oss.qualcomm.com \
    --cc=prashanth.k@oss.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=tapas.rana@oss.qualcomm.com \
    --cc=tvlad744@gmail.com \
    --cc=val@packett.cool \
    --cc=vkoul@kernel.org \
    --cc=wesley.cheng@oss.qualcomm.com \
    --cc=yongxing.mou@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