Skip to content

net: ethernet: bgmac: Add platform device support

Jon Mason linux-arm-kernel linux-devicetree lkml netdev 2 versions – Applied

Status from this message: Applied to devicetree/next, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 15 repliesApplied
  2. v17 patches 12 repliesSuperseded

Changes in v2 from the cover letter

* Made device tree binding changes suggested by Sergei Shtylyov, Ray Jui, Rob Herring, Florian Fainelli, and Arnd Bergmann
* Removed devm_* error paths in the bgmac_platform.c suggested by Florian Fainelli
* Added Arnd Bergmann's Acked-by to the first 5 (there were changes outlined in the bullets above, but I believe them to be minor enough for him to not revoke his acks)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6net: ethernet: bgmac: change bgmac_* prints to dev_* printsdrivers/net/ethernet/broadcom/bgmac.c drivers/net/ethernet/broadcom/bgmac.h+55 -621 reply
2/6net: ethernet: bgmac: add dma_dev pointerdrivers/net/ethernet/broadcom/bgmac.c drivers/net/ethernet/broadcom/bgmac.h+10 -81 reply
3/6net: ethernet: bgmac: move BCMA MDIO Phy code into a separate filedrivers/net/ethernet/broadcom/Makefile drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c drivers/net/ethernet/broadcom/bgmac.c +1 more+298 -2171 reply
4/6net: ethernet: bgmac: convert to feature flagsdrivers/net/ethernet/broadcom/bgmac.c drivers/net/ethernet/broadcom/bgmac.h+140 -484 replies
5/6net: ethernet: bgmac: Add platform device supportdrivers/net/ethernet/broadcom/Kconfig drivers/net/ethernet/broadcom/Makefile drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c +4 more+650 -2851 reply
6/6dt-bindings: net: bgmac: add bindings documentation for bgmacDocumentation/devicetree/bindings/net/brcm,amac.txt Documentation/devicetree/bindings/net/brcm,bgmac-nsp.txt+48 -03 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchArnd BergmannFlorian FainelliRob Herring
SeriesR-b T-b
1/6A-b R-b T-b
2/6A-b R-b T-b
3/6A-b R-b T-b
4/6A-b R-b T-b
5/6A-b R-b T-b
6/6R-b T-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/6] net: ethernet: bgmac: Add platform device support

David Miller, Please consider including patches 1-5 in net-next

Florian Fainelli, Please consider including patches 6 & 7 in
devicetree/next

Changes in v2:
* Made device tree binding changes suggested by Sergei Shtylyov, Ray Jui, Rob Herring, Florian Fainelli, and Arnd Bergmann
* Removed devm_* error paths in the bgmac_platform.c suggested by Florian Fainelli
* Added Arnd Bergmann's Acked-by to the first 5 (there were changes outlined in the bullets above, but I believe them to be minor enough for him to not revoke his acks)

This patch series adds support for other, non-bcma iProc SoC's to the bgmac driver. This series only adds NSP support, but we are interested in adding support for the Cygnus and NS2 families (with more possible down the road).

To support non-bcma enabled SoCs, we need to add the standard device tree "platform device" support. Unfortunately, this driver is very tighly coupled with the bcma bus and much unwinding is needed. I tried to break this up into a number of patches to make it more obvious what was being done to add platform device support. I was able to verify that the bcma code still works using a 53012K board (NS SoC), and that the platform code works using a 58625K board (NSP SoC).

Thanks,
Jon

Jon Mason (6):
net: ethernet: bgmac: change bgmac_* prints to dev_* prints
net: ethernet: bgmac: add dma_dev pointer
net: ethernet: bgmac: move BCMA MDIO Phy code into a separate file
net: ethernet: bgmac: convert to feature flags
net: ethernet: bgmac: Add platform device support
dt-bindings: net: bgmac: add bindings documentation for bgmac

 .../devicetree/bindings/net/brcm,amac.txt          |  24 +
 .../devicetree/bindings/net/brcm,bgmac-nsp.txt     |  24 +
 drivers/net/ethernet/broadcom/Kconfig              |  23 +-
 drivers/net/ethernet/broadcom/Makefile             |   2 +
 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c    | 266 +++++++++
 drivers/net/ethernet/broadcom/bgmac-bcma.c         | 315 ++++++++++
 drivers/net/ethernet/broadcom/bgmac-platform.c     | 189 ++++++
 drivers/net/ethernet/broadcom/bgmac.c              | 658 +++++----------------
 drivers/net/ethernet/broadcom/bgmac.h              | 112 +++-
 9 files changed, 1097 insertions(+), 516 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/brcm,amac.txt
 create mode 100644 Documentation/devicetree/bindings/net/brcm,bgmac-nsp.txt
 create mode 100644 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c
 create mode 100644 drivers/net/ethernet/broadcom/bgmac-bcma.c
 create mode 100644 drivers/net/ethernet/broadcom/bgmac-platform.c
Signature · 1 line
1.9.1