Skip to content

Commit 308d316

Browse files
jbrun3tdavem330
authored andcommitted
dt: bindings: net: use boolean dt properties for eee broken modes
The patches regarding eee-broken-modes was merged before all people involved could find an agreement on the best way to move forward. While we agreed on having a DT property to mark particular modes as broken, the value used for eee-broken-modes mapped the phy register in very direct way. Because of this, the concern is that it could be used to implement configuration policies instead of describing a broken HW. In the end, having a boolean property for each mode seems to be preferred over one bit field value mapping the register (too) directly. Cc: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 57f3986 commit 308d316

2 files changed

Lines changed: 8 additions & 21 deletions

File tree

  • Documentation/devicetree/bindings/net
  • include/dt-bindings/net

‎Documentation/devicetree/bindings/net/phy.txt‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,14 @@ Optional Properties:
3838
- enet-phy-lane-swap: If set, indicates the PHY will swap the TX/RX lanes to
3939
compensate for the board being designed with the lanes swapped.
4040

41-
- eee-broken-modes: Bits to clear in the MDIO_AN_EEE_ADV register to
42-
disable EEE broken modes.
41+
- eee-broken-100tx:
42+
- eee-broken-1000t:
43+
- eee-broken-10gt:
44+
- eee-broken-1000kx:
45+
- eee-broken-10gkx4:
46+
- eee-broken-10gkr:
47+
Mark the corresponding energy efficient ethernet mode as broken and
48+
request the ethernet to stop advertising it.
4349

4450
Example:
4551

‎include/dt-bindings/net/mdio.h‎

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)