Linux-PHY Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Benjamin Robin <benjamin.robin@bootlin.com>
Cc: "Krzysztof Kozlowski" <krzk@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Yuti Amonkar" <yamonkar@cadence.com>,
	"Philipp Zabel" <p.zabel@pengutronix.de>,
	"Andrzej Hajda" <andrzej.hajda@intel.com>,
	"Robert Foss" <rfoss@kernel.org>,
	"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
	"Jonas Karlman" <jonas@kwiboo.se>,
	"Jernej Skrabec" <jernej.skrabec@gmail.com>,
	"Luca Ceresoli" <luca.ceresoli@bootlin.com>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>, "Nishanth Menon" <nm@ti.com>,
	"Vignesh Raghavendra" <vigneshr@ti.com>,
	"Tero Kristo" <kristo@kernel.org>, "Andrew Davis" <afd@ti.com>,
	"Vinod Koul" <vkoul@kernel.org>,
	"Chintan Vankar" <c-vankar@ti.com>,
	"Abhash Kumar Jha" <a-kumar2@ti.com>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	"Manivannan Sadhasivam" <mani@kernel.org>,
	"Thomas Richard" <thomas.richard@bootlin.com>,
	"Swapnil Jakhade" <sjakhade@cadence.com>,
	"Siddharth Vadapalli" <s-vadapalli@ti.com>,
	"Gregory CLEMENT" <gregory.clement@bootlin.com>,
	"Théo Lebrun" <theo.lebrun@bootlin.com>,
	"Tawfik Bayouk" <tawfik.bayouk@mobileye.com>,
	"Vladimir Kondratiev" <vladimir.kondratiev@mobileye.com>,
	"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org
Subject: Re: [PATCH 2/4] dt-bindings: phy: cadence-torrent: drop cdns,num-lanes default value
Date: Tue, 1 Dec 2026 14:59:04 -0600	[thread overview]
Message-ID: <20261201205904.GA3870511-robh@kernel.org> (raw)
In-Reply-To: <UlYYmHSPRwOwyW5SQXMI_w@bootlin.com>

On Tue, Nov 24, 2026 at 05:11:25PM +0100, Benjamin Robin wrote:
> On Saturday, November 21, 2026 at 5:19 PM, Krzysztof Kozlowski wrote:
> > On Fri, Nov 20, 2026 at 01:55:50PM +0100, Benjamin Robin wrote:
> > > The driver treats cdns,num-lanes as mandatory and refuses to probe a PHY
> > > sub-node that does not provide it, logging:
> > > 
> > >   No "cdns,num-lanes"-property.
> > > 
> > > A default value in the schema wrongly suggests that the property is
> > > optional, which it is not since it is listed as required. Remove the
> > > "default: 4" so the binding reflects the actual driver behavior and the
> > > mandatory nature of the property.
> > 
> > No, that's a bug in the driver introduced in 2020. You ignored the
> > background and history of this driver and DT bindings.
> 
> Hello Krzysztof,
> 
> I was not aware that this was a driver bug introduced in 2020. Series [1]
> made the "cdns,num-lanes" property required in the DT binding back then
> (see [2]), so the mismatch has been there for six years with no one
> complaining so far.
> 
> Two options (I have a slight preference for the 2nd proposal):
> 
> 1. Keep my current change: leave the property required and drop the
>    misleading "default: 4" from the schema, so the binding matches the
>    driver's behavior.
> 
> 2. Restore the previous behavior: make "cdns,num-lanes" optional and
>    default to 4 lanes again, fixing the driver regression introduced
>    in 2020.
> 
> Which one do you prefer? If you consider the 2020 change a regression,
> I can fix the driver instead and make the property optional with a
> default of 4.

krzk already said 'bug in the driver', so 2.

Rob

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2026-12-01 20:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 12:55 [PATCH 0/4] phy: cadence-torrent: rewrite Torrent PHY driver Benjamin Robin
2026-11-20 12:55 ` [PATCH 1/4] arm64: dts: ti: k3-j7200: Fix QSGMII overlay by adding SERDES PHY Benjamin Robin
2026-11-20 12:55 ` [PATCH 2/4] dt-bindings: phy: cadence-torrent: drop cdns,num-lanes default value Benjamin Robin
2026-11-21 16:19   ` Krzysztof Kozlowski
2026-11-24 16:11     ` Benjamin Robin
2026-12-01 20:59       ` Rob Herring [this message]
2026-11-20 12:55 ` [PATCH 3/4] dt-bindings: phy: cadence-torrent: add phy-mode constants Benjamin Robin
2026-11-20 13:10   ` sashiko-bot
2026-11-21 16:20   ` Krzysztof Kozlowski
2026-11-24 16:41     ` Benjamin Robin
2026-11-20 12:55 ` [PATCH 4/4] phy: cadence-torrent: rewrite Torrent PHY driver Benjamin Robin
2026-11-20 13:33   ` sashiko-bot
2026-11-21 16:16   ` Krzysztof Kozlowski
2026-11-24 17:18     ` Benjamin Robin

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=20261201205904.GA3870511-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=a-kumar2@ti.com \
    --cc=afd@ti.com \
    --cc=airlied@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=benjamin.robin@bootlin.com \
    --cc=c-vankar@ti.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregory.clement@bootlin.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=kristo@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=luca.ceresoli@bootlin.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mani@kernel.org \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=nm@ti.com \
    --cc=p.zabel@pengutronix.de \
    --cc=rfoss@kernel.org \
    --cc=s-vadapalli@ti.com \
    --cc=simona@ffwll.ch \
    --cc=sjakhade@cadence.com \
    --cc=tawfik.bayouk@mobileye.com \
    --cc=theo.lebrun@bootlin.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=thomas.richard@bootlin.com \
    --cc=tzimmermann@suse.de \
    --cc=vigneshr@ti.com \
    --cc=vkoul@kernel.org \
    --cc=vladimir.kondratiev@mobileye.com \
    --cc=yamonkar@cadence.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