Skip to content

net, phy, smsc: add posibility to disable energy detect mode

Heiko Schocher linux-devicetree lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v11 patch 5 repliesSuperseded

Changes in v2 from the cover letter

- add comments from Florian Fainelli
- I did not change disable property name into enable because I fear to break existing behaviour
- add smsc vendor prefix
- remove CONFIG_OF and use __maybe_unused
- introduce "phy-handle" ability into ti,cpsw driver, so I can remove bogus:
if (!of_node && dev->parent->of_node)
of_node = dev->parent->of_node;
construct. Therefore new patch for the ti,cpsw driver is necessary.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drivers: net: cpsw: add phy-handle parsingDocumentation/devicetree/bindings/net/cpsw.txt drivers/net/ethernet/ti/cpsw.c+12 -40 replies
1/2drivers: net: cpsw: add phy-handle parsingDocumentation/devicetree/bindings/net/cpsw.txt drivers/net/ethernet/ti/cpsw.c+12 -40 replies
2/2net: phy: smsc: disable energy detect modeDocumentation/devicetree/bindings/net/smsc-lan87xx.txt drivers/net/phy/smsc.c+38 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] net, phy, smsc: add posibility to disable energy detect mode

On some boards the energy enable detect mode leads in trouble with some switches, so make the enabling of this mode configurable through DT.
Therefore the property "smsc,disable-energy-detect" is introduced.

Patch 1 introduces phy-handle support for the ti,cpsw driver. This is needed now for the smsc phy.

Patch 2 adds the disable energy mode functionality to the smsc phy

Changes in v2:
- add comments from Florian Fainelli
- I did not change disable property name into enable because I fear to break existing behaviour
- add smsc vendor prefix
- remove CONFIG_OF and use __maybe_unused
- introduce "phy-handle" ability into ti,cpsw driver, so I can remove bogus:
if (!of_node && dev->parent->of_node)
of_node = dev->parent->of_node;
construct. Therefore new patch for the ti,cpsw driver is necessary.

Heiko Schocher (2):
drivers: net: cpsw: add phy-handle parsing
net: phy: smsc: disable energy detect mode

 Documentation/devicetree/bindings/net/cpsw.txt     |  1 +
 .../devicetree/bindings/net/smsc-lan87xx.txt       | 24 ++++++++++++++++++++++
 drivers/net/ethernet/ti/cpsw.c                     | 15 ++++++++++----
 drivers/net/phy/smsc.c                             | 19 ++++++++++++-----
 4 files changed, 50 insertions(+), 9 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/smsc-lan87xx.txt
Signature · 1 line
2.1.0