Skip to contentSkip to conversation

dt-bindings: mark unimplemented AXI snps,kbbe snps,mb and snps,rb

PATCH In review Russell King (Oracle) 4 participants 6 messages Mar 4 – Mar 10

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: mark unimplemented AXI snps,kbbe snps,mb and snps,rb

Mark the AXI snps,kbbe snps,mb and snps,rb properties as not implemented. These were introduced by commit afea03656add ("stmmac:
rework DMA bus setting and introduce new platform AXI structure"). While stmmac has code to parse these properties and save their values, these are written to write-only struct members - no code in stmmac has ever read their value. Hence, these properties have been non- functional from day one.

---
 Documentation/devicetree/bindings/net/snps,dwmac.yaml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/net/snps,dwmac.yaml +3 -3
index 38bc34dc4f09..45dba6533458 100644
@@ -202,11 +202,11 @@ title: Synopsys DesignWare MAC
         * snps,xit_frm, unlock on WoL
         * snps,wr_osr_lmt, max write outstanding req. limit
         * snps,rd_osr_lmt, max read outstanding req. limit
-        * snps,kbbe, do not cross 1KiB boundary.
+        * snps,kbbe, do not cross 1KiB boundary (not implemented)
         * snps,blen, this is a vector of supported burst length.
         * snps,fb, fixed-burst
-        * snps,mb, mixed-burst
-        * snps,rb, rebuild INCRx Burst
+        * snps,mb, mixed-burst (not implemented)
+        * snps,rb, rebuild INCRx Burst (not implemented)
 
   snps,mtl-rx-config:
     $ref: /schemas/types.yaml#/definitions/phandle
Signature · 1 line
2.47.3
#1 lore raw

Any chance of a review from the DT maintainers please?

Thanks.

Quoted 36 lines · Russell King (Oracle)

Mark the AXI snps,kbbe snps,mb and snps,rb properties as not implemented. These were introduced by commit afea03656add ("stmmac:
rework DMA bus setting and introduce new platform AXI structure"). While stmmac has code to parse these properties and save their values, these are written to write-only struct members - no code in stmmac has ever read their value. Hence, these properties have been non- functional from day one.

---
 Documentation/devicetree/bindings/net/snps,dwmac.yaml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/net/snps,dwmac.yaml +3 -3
index 38bc34dc4f09..45dba6533458 100644
@@ -202,11 +202,11 @@ title: Synopsys DesignWare MAC
         * snps,xit_frm, unlock on WoL
         * snps,wr_osr_lmt, max write outstanding req. limit
         * snps,rd_osr_lmt, max read outstanding req. limit
-        * snps,kbbe, do not cross 1KiB boundary.
+        * snps,kbbe, do not cross 1KiB boundary (not implemented)
         * snps,blen, this is a vector of supported burst length.
         * snps,fb, fixed-burst
-        * snps,mb, mixed-burst
-        * snps,rb, rebuild INCRx Burst
+        * snps,mb, mixed-burst (not implemented)
+        * snps,rb, rebuild INCRx Burst (not implemented)
 
   snps,mtl-rx-config:
     $ref: /schemas/types.yaml#/definitions/phandle
Signature · 1 line
2.47.3
Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
#2 lore raw
Quoted 1 line · Russell King (Oracle)

Any chance of a review from the DT maintainers please?

Sure.

Quoted 8 lines · Russell King (Oracle)
Quoted 7 lines

Mark the AXI snps,kbbe snps,mb and snps,rb properties as not implemented. These were introduced by commit afea03656add ("stmmac:
rework DMA bus setting and introduce new platform AXI structure"). While stmmac has code to parse these properties and save their values, these are written to write-only struct members - no code in stmmac has ever read their value. Hence, these properties have been non- functional from day one.

If they're not implemented and have never been used, could we delete entirely? Note that they also appear down around line 600 in the file, in the stmmac-axi-config section.

Cheers,
Conor.

Quoted 33 lines
Quoted 29 lines
---
 Documentation/devicetree/bindings/net/snps,dwmac.yaml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/net/snps,dwmac.yaml +3 -3
index 38bc34dc4f09..45dba6533458 100644
@@ -202,11 +202,11 @@ title: Synopsys DesignWare MAC
         * snps,xit_frm, unlock on WoL
         * snps,wr_osr_lmt, max write outstanding req. limit
         * snps,rd_osr_lmt, max read outstanding req. limit
-        * snps,kbbe, do not cross 1KiB boundary.
+        * snps,kbbe, do not cross 1KiB boundary (not implemented)
         * snps,blen, this is a vector of supported burst length.
         * snps,fb, fixed-burst
-        * snps,mb, mixed-burst
-        * snps,rb, rebuild INCRx Burst
+        * snps,mb, mixed-burst (not implemented)
+        * snps,rb, rebuild INCRx Burst (not implemented)
 
   snps,mtl-rx-config:
     $ref: /schemas/types.yaml#/definitions/phandle
Signature · 1 line
2.47.3
Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
#3 lore raw
Quoted 14 lines · Conor Dooley
Quoted 1 line · Russell King (Oracle)

Any chance of a review from the DT maintainers please?

Sure.

Quoted 8 lines · Russell King (Oracle)
Quoted 7 lines

Mark the AXI snps,kbbe snps,mb and snps,rb properties as not implemented. These were introduced by commit afea03656add ("stmmac:
rework DMA bus setting and introduce new platform AXI structure"). While stmmac has code to parse these properties and save their values, these are written to write-only struct members - no code in stmmac has ever read their value. Hence, these properties have been non- functional from day one.

Quoted 4 lines

If they're not implemented and have never been used, could we delete entirely? Note that they also appear down around line 600 in the file, in the stmmac-axi-config section.

We should not document what is and what is not implemented, thus this patch is not correct either. Either you deprecate properties, based on some argument, or you leave them untouched regardless whether they are implemented or not. If someone re-implements them next week, are you going to change the binding? Usually no, unless these are not really hardware properties.

Best regards,
Krzysztof

#4 lore raw
Quoted 15 lines · Krzysztof Kozlowski
Quoted 14 lines · Conor Dooley
Quoted 1 line · Russell King (Oracle)

Any chance of a review from the DT maintainers please?

Sure.

Quoted 8 lines · Russell King (Oracle)
Quoted 7 lines

Mark the AXI snps,kbbe snps,mb and snps,rb properties as not implemented. These were introduced by commit afea03656add ("stmmac:
rework DMA bus setting and introduce new platform AXI structure"). While stmmac has code to parse these properties and save their values, these are written to write-only struct members - no code in stmmac has ever read their value. Hence, these properties have been non- functional from day one.

Quoted 1 line
Quoted 1 line

If they're not implemented and have never been used, could we delete

Maybe I misunderstood, did you mean delete from the drivers as well? This would work as well, but we cannot only remove the dt-bindings.

Quoted 10 lines
Quoted 3 lines

entirely? Note that they also appear down around line 600 in the file, in the stmmac-axi-config section.

We should not document what is and what is not implemented, thus this patch is not correct either. Either you deprecate properties, based on some argument, or you leave them untouched regardless whether they are implemented or not. If someone re-implements them next week, are you going to change the binding? Usually no, unless these are not really hardware properties.

Best regards,
Krzysztof

#5 lore raw
Quoted 16 lines · Krzysztof Kozlowski
Quoted 15 lines · Krzysztof Kozlowski
Quoted 14 lines · Conor Dooley
Quoted 1 line · Russell King (Oracle)

Any chance of a review from the DT maintainers please?

Sure.

Quoted 8 lines · Russell King (Oracle)
Quoted 7 lines

Mark the AXI snps,kbbe snps,mb and snps,rb properties as not implemented. These were introduced by commit afea03656add ("stmmac:
rework DMA bus setting and introduce new platform AXI structure"). While stmmac has code to parse these properties and save their values, these are written to write-only struct members - no code in stmmac has ever read their value. Hence, these properties have been non- functional from day one.

Quoted 3 lines
Quoted 1 line
Quoted 1 line

If they're not implemented and have never been used, could we delete

Maybe I misunderstood, did you mean delete from the drivers as well?

Correct. That's what I meant by "delete entirely".

Quoted 18 lines

This would work as well, but we cannot only remove the dt-bindings.

Quoted 10 lines
Quoted 3 lines

entirely? Note that they also appear down around line 600 in the file, in the stmmac-axi-config section.

We should not document what is and what is not implemented, thus this patch is not correct either. Either you deprecate properties, based on some argument, or you leave them untouched regardless whether they are implemented or not. If someone re-implements them next week, are you going to change the binding? Usually no, unless these are not really hardware properties.

Best regards,
Krzysztof