From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A022606A31A for ; Tue, 1 Dec 2026 20:59:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=ZCaW+JKc; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Jc4oSQVZ DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=Jgzxbi1kw7f83DuTDF1nrhJj9fmBufPsgwm2D/wLiCg=; b=ZCaW+JKc8TfwH54PkmRv8S3s80 M96GRYulU0arEovBZT1c1kYj1a69Fz+I76Zsryv6PUgDkKhtysOMmJCJ2yqd1f/oy4p6r+GTncieJ ySOtq18g7AuQa9y8+yamtftPdMJMPMfZeqktWroUqMWiIsFD8vn1mAZWtaWJgMF2t9jNQ9TXBIdTm 7y6bL57UeMohPiuswbTNDFOatT/M7Cm03O9RKiyOU+yCCkPPcFjyEY+SPaPOJCRpMIbHmoTmHp4Fy bA3RaxuWX/HvCE8BP8cSZhSvbUGur4dq5y28f2QEwXiYoeCMEzuA3Yx1JTN1vUaEqloEahK6pbExt jOx2aFKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYUwV-00000009Rl3-2Klk; Tue, 01 Dec 2026 20:59:20 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYUwP-00000009RkA-1vhd; Tue, 01 Dec 2026 20:59:09 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id CF3FD60D1A; Tue, 1 Dec 2026 20:59:07 +0000 (UTC) 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-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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