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=1796468926; b=cC06vprbYXvSmGQV5L73TYuKokDOqTUmLkZGJrHJibodXPpsgAC7yGbk3F/Po2KtESl4 pweqM1At8axGsp8Tkkwyk9ru94obHENl/oX+vBFZBt1F5npNGigN9gWQ5DiwMf2pY6HZq YpmBENNz68Zya+u9N0kf/KhaNJzHhYOoxXtFpk+E0N23P0NTvfuPPTp0lckp0JHOhUNbL hi3RMuced9F15beFkC8sbYLGIL/3yXlGaCXEFzc2qco3aVI9CVYU2UOL9uUKJxAYD06fi ux98GupkE5bw4eSv0rBAF0mmBHkv0l5c91pYBs+FnDpiewBVmfYILg4xuFFIm8VVV2Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796468926; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=EKvQGkEIUjaSe6Xas7dLCrJ42z63Pd1zS0T2TpRoJvM=; b=a0Qjf1s0o87Ie1YNjoO05KwC38foQKBiJ55FXBEwhqR8rKuV3lIEwT5sSU5sMlxC7u5s z7xNzFSAVvWlC1JQJCozpKw331yk5varGj2IQMDbQ3xQ391t2Bddnj1ThDNjBUbgX4IFo EPpAL0CR2Rd3mVWa6lTYP+iFNvbcI7gKyRZz5nPDfnGiU2fof1GYRodlEdZxZUR6VpUgq F+8q0yZeQ+j7O4xrSRZtEX7ONy1hef7Ms4TXATImI0lkJ0myHqYUJsaoVNH3vDzFt0Qbn HdEQuKLEN9PXGtNwOCwJ4KY8+MI+e7TJ5FpzfaJLnhl3gACXrDGb1FyeKt38CRYJaQA== 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=kGj01i+s; 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 540C1606A322 for ; Sat, 5 Dec 2026 11:08:46 +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=kGj01i+s Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEF061F0092B; Sat, 5 Dec 2026 11:08:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796468925; bh=EKvQGkEIUjaSe6Xas7dLCrJ42z63Pd1zS0T2TpRoJvM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=kGj01i+sRhkfITD8F9hq+KYk6s4fHnRrnynN0WyA7kNi0es25+MEpULo0meSJqeeA VK8D6yFr7BbidM7+83z+IUD65f8Fv904PJBqOf2AMqc3RIFhOWEWVKl8rdAsQz1+yd PdzUXxRMvF3sXNlgYAkFUcRbCkO43RWf2WXfPS8o2bLE5BoOq5UbFBFcgySFcNiIOC vRte6TS/AgOkGk4cl3NnO0zZlaGuVe7DcfTkJz625X+V6j/hGiHS3vdJ88xaMSOpCy sXKaJ3iOk49jxP3xZb2Wckw6BMAj/YG4ERgH0ZwPavqt0hoc62JiLmTTKnQOwmrrRl 7nW38T0NFII7Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next 01/12] dt-bindings: net: Add Ethernet MII multiplexers Reply-To: sashiko-reviews@lists.linux.dev To: "Maxime Chevallier" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204110622.1106492-2-maxime.chevallier@bootlin.com> References: <20261204110622.1106492-1-maxime.chevallier@bootlin.com> <20261204110622.1106492-2-maxime.chevallier@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 11:08:42 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] dt-bindings: net: mii-mux-auto allows >2 ports and extra takes-precedence - [Low] dt-bindings: net: mii-mux-auto leaves takes-precedence trigger unspecified -- commit 15b0b40dd7397c1fe9390dd7da13fe9a18c062a8 Author: Maxime Chevallier dt-bindings: net: Add Ethernet MII multiplexers This commit adds generic and hardware-switched Ethernet MII multiplexer devicetree bindings, adds a mii-mux-handle property to ethernet-controller.yaml, and adds a MAINTAINERS entry. > diff --git a/Documentation/devicetree/bindings/net/mii-mux-auto.yaml b/Do= cumentation/devicetree/bindings/net/mii-mux-auto.yaml > new file mode 100644 > index 0000000000000..7a965f6e8dcce > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/mii-mux-auto.yaml > @@ -0,0 +1,89 @@ [ ... ] > +allOf: > + - $ref: mii-mux.yaml# > + > +properties: > + compatible: > + const: mii-mux-auto > + > +patternProperties: > + "^port@[0-9a-f]+$": > + $ref: mii-mux.yaml#/$defs/port > + unevaluatedProperties: false > + > + properties: > + takes-precedence: > + type: boolean > + description: > + The multiplexer switches to this port by itself as soon as the > + port gets active, whatever the state of the other port. [Severity: Low] Should the takes-precedence description specify what physical event counts as "active"? Without software control or state readback, drivers must infer when the hardware switches. "Active" could mean SFP module presence (mod_def0), optical signal detect (RX_LOS), or link-up, letting incompatible hardware share the same DT representation. It also leaves takes-precedence permitted on phy-handle ports even though no activation trigger is defined for a PHY port. > + > +required: > + - compatible > + - port@0 > + - port@1 > + > +oneOf: > + - properties: > + port@0: > + required: > + - takes-precedence > + - properties: > + port@1: > + required: > + - takes-precedence > + > +unevaluatedProperties: false [Severity: Medium] Does this schema still allow a mii-mux-auto node with port@2 or higher? Both this file and mii-mux.yaml match "^port@[0-9a-f]+$" without bounding reg, so port@2+ children pass unevaluatedProperties: false. Because oneOf only checks port@0 and port@1, an extra port can also set takes-precedence and still pass dtbs_check. Narrowing the pattern here to "^port@[01]$" alone would not reject port@2+ because mii-mux.yaml still evaluates "^port@[0-9a-f]+$" via allOf; constraining reg to [0, 1] (or rejecting higher ports explicitly) would enforce both invariants. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204110622.1106= 492-1-maxime.chevallier@bootlin.com?part=3D1