mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philipp Zabel <p.zabel@pengutronix.de>
To: Icenowy Zheng <zhengxingda@iscas.ac.cn>,
	Vinod Koul <vkoul@kernel.org>,
	 Neil Armstrong <neil.armstrong@linaro.org>,
	Manivannan Sadhasivam <mani@kernel.org>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski	 <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Wei Fu <wefu@redhat.com>,
	 Drew Fustini <dfustini@tenstorrent.com>
Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org, Han Gao <rabenda.cn@gmail.com>,
	Drew Fustini <fustini@kernel.org>,
	Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Subject: Re: [PATCH v5 2/2] phy: add a driver for T-Head TH1520 USB PHY
Date: Tue, 01 Dec 2026 16:27:47 +0100	[thread overview]
Message-ID: <9175cd8f50d4670af16b3937e157e742e51ee8e6.camel@pengutronix.de> (raw)
In-Reply-To: <9f418e1edd7fb5f94d03a94483e6f6f610d47a16.camel@iscas.ac.cn>

On Di, 2026-12-01 at 20:50 +0800, Icenowy Zheng wrote:
> 在 2026-12-01二的 11:22 +0100,Philipp Zabel写道:
> > On Mo, 2026-11-30 at 17:07 +0800, Icenowy Zheng wrote:
> > > The USB PHY on T-Head TH1520 SoC is a Synopsys USB 3.0 FemtoPHY, with
> > > some PHY parameters exported as another system controller along with it.
> > > 
> > > A few PHY parameters have unusable defaults. Add a driver that programs
> > > them before releasing the PHY from reset in addition to
> > > clock/reset/regulator management.
> > > 
> > > Reviewed-by: Drew Fustini <fustini@kernel.org>
> > > Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
> > > Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> > > ---
> > >  drivers/phy/Kconfig                |   1 +
> > >  drivers/phy/Makefile               |   1 +
> > >  drivers/phy/thead/Kconfig          |  12 +++
> > >  drivers/phy/thead/Makefile         |   2 +
> > >  drivers/phy/thead/phy-th1520-usb.c | 176 +++++++++++++++++++++++++++++++++++++
> > >  5 files changed, 192 insertions(+)
> > > 
> > [...]
> > > diff --git a/drivers/phy/thead/Kconfig b/drivers/phy/thead/Kconfig
> > > new file mode 100644
> > > index 0000000000000..ba0ceac54c1b0
> > > --- /dev/null
> > > +++ b/drivers/phy/thead/Kconfig
> > > @@ -0,0 +1,12 @@
> > > +# SPDX-License-Identifier: GPL-2.0-only
> > > +config PHY_TH1520_USB
> > > +	tristate "USB PHY driver for T-Head TH1520 SoC"
> > > +	depends on ARCH_THEAD || COMPILE_TEST
> > > +	depends on COMMON_CLK
> > > +	depends on HAS_IOMEM
> > > +	depends on OF
> > > +	depends on RESET_CONTROLLER
> > 
> > Drop this, only reset controller drivers need to depend on
> > RESET_CONTROLLER.
> 
> I think this driver would not make sense if the real reset operations
> aren't available (because this driver tunes some MMIO PHY parameters while
> putting the PHY into reset).

The driver won't work if the reset controller driver - I assume
RESET_TH1520 - is missing, either.

I don't think Kbuild the right tool to enforce such runtime
dependencies per driver.

regards
Philipp

      reply	other threads:[~2026-12-01 15:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  9:07 [PATCH v5 0/2] phy: add support for " Icenowy Zheng
2026-11-30  9:07 ` [PATCH v5 1/2] dt-bindings: phy: add binding for T-Head " Icenowy Zheng
2026-11-30  9:07 ` [PATCH v5 2/2] phy: add a driver " Icenowy Zheng
2026-12-01 10:22   ` Philipp Zabel
2026-12-01 12:50     ` Icenowy Zheng
2026-12-01 15:27       ` Philipp Zabel [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=9175cd8f50d4670af16b3937e157e742e51ee8e6.camel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dfustini@tenstorrent.com \
    --cc=fustini@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=mani@kernel.org \
    --cc=manivannan.sadhasivam@oss.qualcomm.com \
    --cc=neil.armstrong@linaro.org \
    --cc=rabenda.cn@gmail.com \
    --cc=robh@kernel.org \
    --cc=vkoul@kernel.org \
    --cc=wefu@redhat.com \
    --cc=zhengxingda@iscas.ac.cn \
    /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

all inboxes | Powered by JetHome®