Skip to content

net: add reset-controller driven PHY reset

David Bauer linux-devicetree netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 4 repliesIn review
  2. v23 patches 2 repliesSuperseded
  3. v13 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- add missing newline in mdio_bus.c

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: net: add PHY reset controller bindingDocumentation/devicetree/bindings/net/phy.txt+6 -01 reply
2/3net: phy: add support for reset-controllerdrivers/net/phy/mdio_bus.c drivers/net/phy/mdio_device.c include/linux/mdio.h+37 -41 reply
3/3net: mdio: rename mdio_device reset to reset_gpiodrivers/net/phy/at803x.c drivers/net/phy/mdio_bus.c drivers/net/phy/mdio_device.c +1 more+8 -81 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndrew Lunn
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] net: add reset-controller driven PHY reset

This patchset adds support for a PHY reset driven by a reset-controller. Currently, only GPIO driven resets are supported by the PHY subsystem. It also renames the reset-gpio from 'reset' to 'reset_gpio' to better differentiate between resets wired to a GPIO and resets wired to a reset-controller driven pin.

Some systems have the PHY reset-line wired to a pin controlled by a reset-controller (eg. some Atheros AR9132 based boards). In case the bootloader asserts reset before loading the kernel, we currently do not have a clean way of deasserting reset to probe the PHY.

v3:
- add missing newline in mdio_bus.c

v2:
- fixed missed rename of "reset" in at803x.c
- move initial reset to mdio_device_reset

David Bauer (3):
dt-bindings: net: add PHY reset controller binding
net: phy: add support for reset-controller
net: mdio: rename mdio_device reset to reset_gpio

 Documentation/devicetree/bindings/net/phy.txt |  6 ++++
 drivers/net/phy/at803x.c                      |  2 +-
 drivers/net/phy/mdio_bus.c                    | 33 ++++++++++++++++---
 drivers/net/phy/mdio_device.c                 | 13 ++++++--
 include/linux/mdio.h                          |  3 +-
 5 files changed, 48 insertions(+), 9 deletions(-)
Signature · 1 line
2.21.0