Skip to contentSkip to conversation

dt-bindings: net: fsl,qoriq-mc-dpmac: using unevaluatedProperties

PATCH Applied Frank Li 5 participants 5 messages Aug 11, 2024 – Aug 15, 2024

Subsystems (4)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v3 1/1 dt-bindings: net: fsl,qoriq-mc-dpmac: using unevaluatedProperties

Replace additionalProperties with unevaluatedProperties because it have
allOf: $ref: ethernet-controller.yaml#.

Remove all properties, which already defined in ethernet-controller.yaml.

Fixed below CHECK_DTBS warnings:
arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dtb:
fsl-mc@80c000000: dpmacs:ethernet@11: 'fixed-link' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/misc/fsl,qoriq-mc.yaml#

---
Change from v2 to v3
- keep pcs-handle because need maxItems

Change from v1 to v2
- Remove properties, which already defined in ethernet-controller.yaml

---
 .../devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml    | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
Documentation/devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml +1 -9
index a1b71b35319e7..f19c4fa66f18b 100644
@@ -24,24 +24,16 @@ properties:
     maxItems: 1
     description: The DPMAC number
 
-  phy-handle: true
-
-  phy-connection-type: true
-
-  phy-mode: true
-
   pcs-handle:
     maxItems: 1
     description:
       A reference to a node representing a PCS PHY device found on
       the internal MDIO bus.
 
-  managed: true
-
 required:
   - reg
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
Signature · 1 line
2.34.1
Reviewed-by on v3 1/1
#1 lore raw
Quoted 11 lines · Frank Li

Replace additionalProperties with unevaluatedProperties because it have
allOf: $ref: ethernet-controller.yaml#.

Remove all properties, which already defined in ethernet-controller.yaml.

Fixed below CHECK_DTBS warnings:
arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dtb:
fsl-mc@80c000000: dpmacs:ethernet@11: 'fixed-link' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/misc/fsl,qoriq-mc.yaml#

Best regards,
Krzysztof

#2 lore raw
In reply to Frank Li
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 11 lines · On Sun, 11 Aug 2024 14:40:49 -0400 you wrote:

Replace additionalProperties with unevaluatedProperties because it have
allOf: $ref: ethernet-controller.yaml#.

Remove all properties, which already defined in ethernet-controller.yaml.

Fixed below CHECK_DTBS warnings:
arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dtb:
fsl-mc@80c000000: dpmacs:ethernet@11: 'fixed-link' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/misc/fsl,qoriq-mc.yaml#

[...]

Here is the summary with links:
- [v3,1/1] dt-bindings: net: fsl,qoriq-mc-dpmac: using unevaluatedProperties

    https://git.kernel.org/netdev/net-next/c/be034ee6c33d

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
#3 lore raw

Re: [PATCH v3 1/1] dt-bindings: net: fsl,qoriq-mc-dpmac: using unevaluatedProperties: manual merge

In reply to Frank Li

Hi Frank,

Quoted 9 lines · Frank Li

Replace additionalProperties with unevaluatedProperties because it have
allOf: $ref: ethernet-controller.yaml#.

Remove all properties, which already defined in ethernet-controller.yaml.

Fixed below CHECK_DTBS warnings:
arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dtb:
fsl-mc@80c000000: dpmacs:ethernet@11: 'fixed-link' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/misc/fsl,qoriq-mc.yaml#

FYI, we got a small conflict when merging 'net' in 'net-next' in the MPTCP tree due to this patch applied in 'net':

c25504a0ba36 ("dt-bindings: net: fsl,qoriq-mc-dpmac: add missed
property phys")

and this one from 'net-next':

be034ee6c33d ("dt-bindings: net: fsl,qoriq-mc-dpmac: using
unevaluatedProperties")

----- Generic Message -----
The best is to avoid conflicts between 'net' and 'net-next' trees but if they cannot be avoided when preparing patches, a note about how to fix them is much appreciated.

The conflict has been resolved on our side[1] and the resolution we suggest is attached to this email. Please report any issues linked to this conflict resolution as it might be used by others. If you worked on the mentioned patches, don't hesitate to ACK this conflict resolution.
---------------------------

Regarding this conflict, a merge of the two modifications has been
taken: adding 'phys', and removing 'managed'

Rerere cache is available in [2].

Cheers,
Matt

1: https://github.com/multipath-tcp/mptcp_net-next/commit/691930dfa066
2: https://github.com/multipath-tcp/mptcp-upstream-rr-cache/commit/d15f8

Cheers,
Matt

Signature · 1 line
Sponsored by the NGI0 Core fund.
Documentation/devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml +0 -0
diff --cc Documentation/devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml
index 42f9843d1868,f19c4fa66f18..be8a2163b73e
@@@ -36,12 -30,6 +30,10 @@@ properties
        A reference to a node representing a PCS PHY device found on
        the internal MDIO bus.
  
-   managed: true
- 
 +  phys:
 +    description: A reference to the SerDes lane(s)
 +    maxItems: 1
 +
  required:
    - reg
  
#4 lore raw

Re: [PATCH v3 1/1] dt-bindings: net: fsl,qoriq-mc-dpmac: using unevaluatedProperties: manual merge

Hi Matthieu,

Quoted 7 lines · On Wed, 14 Aug 2024 11:06:10 +0200 Matthieu Baerts <[email protected]> wrote:

FYI, we got a small conflict when merging 'net' in 'net-next' in the MPTCP tree due to this patch applied in 'net':

c25504a0ba36 ("dt-bindings: net: fsl,qoriq-mc-dpmac: add missed
property phys")

Quoted 7 lines

and this one from 'net-next':

be034ee6c33d ("dt-bindings: net: fsl,qoriq-mc-dpmac: using
unevaluatedProperties")

Regarding this conflict, a merge of the two modifications has been
taken: adding 'phys', and removing 'managed'

Thanks for the heads up.

Signature · 2 lines
Cheers,
Stephen Rothwell