Skip to content

convert stmmac glue layers into platform drivers

Joachim Eastwood linux-arm-kernel linux-rockchip netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11stmmac: add dwmac glue for NXP 18xx/43xx familydrivers/net/ethernet/stmicro/stmmac/Makefile drivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +1 more+78 -10 replies
2/11doc: dt: add documentation for nxp,lpc1850-dwmacDocumentation/devicetree/bindings/net/nxp,lpc1850-dwmac.txt+20 -00 replies
3/11stmmac: prepare stmmac platform to support stand alone driversdrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h+13 -50 replies
4/11stmmac: add a generic dwmac driverdrivers/net/ethernet/stmicro/stmmac/Kconfig drivers/net/ethernet/stmicro/stmmac/Makefile drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c +1 more+54 -60 replies
5/11stmmac: convert dwmac-lpc18xx to a platform driverdrivers/net/ethernet/stmicro/stmmac/Kconfig drivers/net/ethernet/stmicro/stmmac/Makefile drivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c +2 more+35 -40 replies
6/11stmmac: convert dwmac-meson to platform driverdrivers/net/ethernet/stmicro/stmmac/Kconfig drivers/net/ethernet/stmicro/stmmac/Makefile drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c +2 more+36 -40 replies
7/11stmmac: convert dwmac-rk to platform driverdrivers/net/ethernet/stmicro/stmmac/Kconfig drivers/net/ethernet/stmicro/stmmac/Makefile drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +2 more+39 -40 replies
8/11stmmac: convert dwmac-socfpga to platform driverdrivers/net/ethernet/stmicro/stmmac/Kconfig drivers/net/ethernet/stmicro/stmmac/Makefile drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c +2 more+34 -40 replies
9/11stmmac: convert dwmac-sti to platform driverdrivers/net/ethernet/stmicro/stmmac/Kconfig drivers/net/ethernet/stmicro/stmmac/Makefile drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c +2 more+40 -90 replies
10/11stmmac: convert dwmac-sunxi to platform driverdrivers/net/ethernet/stmicro/stmmac/Kconfig drivers/net/ethernet/stmicro/stmmac/Makefile drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c +2 more+36 -50 replies
11/11stmmac: drop driver from stmmac platform codedrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c+3 -230 replies

Reviews trailers per patch

None of the 11 patches has a Reviewed-by or Acked-by.

PatchChen-Yu TsaiDinh Nguyen
SeriesT-b T-b
1/11
2/11
3/11
4/11
5/11
6/11
7/11
8/11
9/11
10/11
11/11

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

Read the v1 thread

Cover letter [PATCH net-next 00/11] convert stmmac glue layers into platform drivers

This patch set aims to convert the current dwmac glue layers into proper platform drivers as request by Arnd[1]. These changes start from patch 3 and onwards.

Overview:
Platform driver functions like probe and remove are exported from the stmmac platform and then used in subsequent glue later conversions. The conversion involes adding the platform driver boiler plate code and adding it to the build system. The last patch removes the driver from the stmmac platform code thus making it into a library for common platform driver functions.

The two first patches adds glue layer for my platform. I chose to first add old style glue layer and then convert it. The churn this creates is just 3 lines.

I would be very nice if people could test this patch set on their respective platform. My testing has been limited to compiling and testing on my (LPC18xx) platform. Thanks!

Next I will look into cleaning up the stmmac platform code.

[1] http://marc.info/?l=linux-arm-kernel&m=143059524606459&w=2

Joachim Eastwood (11):
stmmac: add dwmac glue for NXP 18xx/43xx family
doc: dt: add documentation for nxp,lpc1850-dwmac
stmmac: prepare stmmac platform to support stand alone drivers
stmmac: add a generic dwmac driver
stmmac: convert dwmac-lpc18xx to a platform driver
stmmac: convert dwmac-meson to platform driver
stmmac: convert dwmac-rk to platform driver
stmmac: convert dwmac-socfpga to platform driver
stmmac: convert dwmac-sti to platform driver
stmmac: convert dwmac-sunxi to platform driver
stmmac: drop driver from stmmac platform code

 .../devicetree/bindings/net/nxp,lpc1850-dwmac.txt  | 20 +++++
 drivers/net/ethernet/stmicro/stmmac/Kconfig        | 76 +++++++++++++++++
 drivers/net/ethernet/stmicro/stmmac/Makefile       | 13 ++-
 .../net/ethernet/stmicro/stmmac/dwmac-generic.c    | 41 +++++++++
 .../net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c    | 99 ++++++++++++++++++++++
 drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c  | 24 +++++-
 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c     | 27 +++++-
 .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c    | 21 ++++-
 drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c    | 29 ++++++-
 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c  | 25 +++++-
 .../net/ethernet/stmicro/stmmac/stmmac_platform.c  | 49 ++---------
 .../net/ethernet/stmicro/stmmac/stmmac_platform.h  |  9 +-
 12 files changed, 378 insertions(+), 55 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/nxp,lpc1850-dwmac.txt
 create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c
 create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c
Signature · 1 line
1.8.0