Skip to content

RFC net: mvmdio: close the gaps between mv643xx_eth and mvmdio

Florian Fainelli linux-arm-kernel netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: mvmdio: rename base register cookie from smireg to regsdrivers/net/ethernet/marvell/mvmdio.c+8 -80 replies
2/4net: mvmdio: do not assume SMI reg is at offset 0 of the resourceDocumentation/devicetree/bindings/net/marvell-orion-mdio.txt arch/arm/boot/dts/armada-370-xp.dtsi drivers/net/ethernet/marvell/mvmdio.c+7 -60 replies
3/4net: mvmdio: enhance driver to support SMI error/done interruptsDocumentation/devicetree/bindings/net/marvell-orion-mdio.txt drivers/net/ethernet/marvell/mvmdio.c+73 -110 replies
4/4net: mvmdio: add getter and setter for PHY addressesdrivers/net/ethernet/marvell/mvmdio.c include/linux/marvell_mvmdio.h+39 -02 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/4] net: mvmdio: close the gaps between mv643xx_eth and mvmdio

Hi all,

This patch series attempts to close the gaps between the SMI/MDIO driver implemented and use by the Marvell MV643XX ethernet driver and Thomas' MVMDIO driver. I did not convert yet mv643xx_eth to use it as it would require proper Device Tree bindings (which is being worked on) to easily hook into it.

Note that I could not test this properly yet, thus the RFC, and I would like to find a better way of setting/getting the PHY address than using two exports, although I have tried to make them easy enough to use so the following logic in Ethernet drivers can be used:

- lookup device tree handle from MDIO device tree node
- lookup corresponding struct platform_device from the device tree handle
- call the helpers

Comment welcome!

Florian Fainelli (4):
net: mvmdio: rename base register cookie from smireg to regs
net: mvmdio: do not assume SMI reg is at offset 0 of the resource
net: mvmdio: enhance driver to support SMI error/done interrupts
net: mvmdio: add getter and setter for PHY addresses

 .../devicetree/bindings/net/marvell-orion-mdio.txt |    5 +-
 arch/arm/boot/dts/armada-370-xp.dtsi               |    2 +-
 drivers/net/ethernet/marvell/mvmdio.c              |  125 +++++++++++++++++---
 include/linux/marvell_mvmdio.h                     |   10 ++
 4 files changed, 122 insertions(+), 20 deletions(-)
 create mode 100644 include/linux/marvell_mvmdio.h
Signature · 1 line
1.7.10.4