From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796158748; b=jkChOm1G48leV8hK470dl3TqhSqbUHpYvMptGW4vdf+IC3o5iNgYlCP74K8xjFlz9FEx 3CwEdqsvreB60ZR67yVrNsZCv95o9rkPa+pRsJ6QzsqXuxlSxq45ZAH5nvmse6oUXn39X MGBiuAFzhTAce38W2egSATbEEH5pDUvqjvrbCpmHTXVXV7rg4m3OqfegmYVhg8HLhI6mB MPFxm7sB+cpg8F1OV7TMqJbDpn4A9whzHdAdXkCmPi5cBIlOinZ5De3EVQMq1gF5avHLO yBYZuaksmBGybCt14q85A9YgdtLhUz5bSk/EIXbbl+J044MJEMEGOa90LwejpGdtHNA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796158748; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=Jgzxbi1kw7f83DuTDF1nrhJj9fmBufPsgwm2D/wLiCg=; b=kp884pC26I38a97L7u52y79CacFQ3muGM+oD7Z543NEBZ7t5uE4hVXRBim3ViifD/Yq0 /PFzGXtMTDAnULmZdYZLscATYUsajO7yWDEa9AO55P7hYQm3NQ5kg+Wlbd0PM7kQAWiNL xAe5qneFLNtB12F8Yj5PZrGuWqNvt60gyR7p5n2rxXR/KM6dQFI81LkUHY8cMsMslp+ae UwR0wrDsCbZnHk4gyfplhey0sjSaAqFs4HEPEwsPdYI+OOsBYmwNE9rDuHLVMr29Vv4q7 WES3zQ9wQLUgl9CIagqMHIIdZa9we1SfJlWIRzjW1CdT+Jsq9pDD2DeZ4ubAImZAxuw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Jc4oSQVZ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 062A2606A31A; Tue, 1 Dec 2026 20:59:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Jc4oSQVZ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FDEB1F00893; Tue, 1 Dec 2026 20:59:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796158747; bh=Jgzxbi1kw7f83DuTDF1nrhJj9fmBufPsgwm2D/wLiCg=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Jc4oSQVZ2gczFFaSZWBTNqpXudmy7OOeYN2A31S+2E3wyH/lE9OlxlfTN13O+q/lZ Eo7Qk7O2XmaVAKwwMUd9Z/5rnyj3Up7HXAVfCSbP/Tav+iRWTVCm+WIpW3bXrjm8eM RUkfcrgaYMkmBd97NtES4/jMt3mqwswXISm8IEmrkfoOfG+iOIKasq+LY0NVmfhm/H UfZ0E+svehSx/NYKFHiH7LgegsZWlpBfVYCzG/luJkp7rj9RRW11X3Wgcr2KTsoezA hDQFTiY+2hhJ49E81HVPF0yzP5IRdh7Chs/vF/bz5+V3x/dQk8JIPE1LzD+KODCa7R pNUD1KpfG0KQQ== Date: Tue, 1 Dec 2026 14:59:04 -0600 From: Rob Herring To: Benjamin Robin Cc: Krzysztof Kozlowski , Krzysztof Kozlowski , Conor Dooley , Yuti Amonkar , Philipp Zabel , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Luca Ceresoli , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Andrew Davis , Vinod Koul , Chintan Vankar , Abhash Kumar Jha , Neil Armstrong , Manivannan Sadhasivam , Thomas Richard , Swapnil Jakhade , Siddharth Vadapalli , Gregory CLEMENT , =?iso-8859-1?Q?Th=E9o?= Lebrun , Tawfik Bayouk , Vladimir Kondratiev , Thomas Petazzoni , 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 Message-ID: <20261201205904.GA3870511-robh@kernel.org> References: <20261120-phy-cadence-torrent-ng-v1-0-da2db7125cd7@bootlin.com> <20261120-phy-cadence-torrent-ng-v1-2-da2db7125cd7@bootlin.com> <20261121-favorite-turtle-of-penetration-c3157f@quoll> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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