Skip to content

stmmac clean up for 4.3 part1

Joachim Eastwood netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8stmmac: use of_device_get_match_data to retrieve of match datadrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c+3 -50 replies
2/8stmmac: clean up platform/of_match data retrievaldrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c+29 -210 replies
3/8stmmac: introduce stmmac_get_platform_resources()drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c+37 -270 replies
4/8stmmac: make stmmac_probe_config_dt return the platform data structdrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c+12 -160 replies
5/8stmmac: export probe_config_dt() and get_platform_resources()drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h+14 -40 replies
6/8stmmac: add proper probe function to dwmac-lpc18xxdrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c+23 -360 replies
7/8stmmac: add proper probe function to dwmac-mesondrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c+20 -110 replies
8/8stmmac: drop custom_* fields from plat_stmmacenet_dataDocumentation/networking/stmmac.txt include/linux/stmmac.h+0 -60 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/8] stmmac clean up for 4.3 part1

Hi everyone,

This patch set continues the conversion of the dwmac glue layers to more proper platform drivers. The first part of the patch set cleans up stmmac_platform a bit. Refactors code from the common probe function and exports two functions that will be used in the dwmac-* drivers.

Second part converts two simple dwmac-* drivers to have their own probe function and use the exported functions. This brings us closer to point where stmmac_platform is only a library of common functions for the dwmac-* drivers to use.

The plan next is:
* add probe functions to the rest of the dwmac-* drivers
* move probe function in stmmac_platform to dwmac-generic
* remove struct stmmac_of_data and let those drivers that actually need match data handle it themselves
* clean up include/linux/stmmac.h

Note that this patch set has only been tested on lpc18xx so testing on other platforms is greatly appreciated.

Previous parts can be found here:
http://www.spinics.net/lists/netdev/msg328997.html
http://www.spinics.net/lists/netdev/msg329932.html

Joachim Eastwood (8):
stmmac: use of_device_get_match_data to retrieve of match data
stmmac: clean up platform/of_match data retrieval
stmmac: introduce stmmac_get_platform_resources()
stmmac: make stmmac_probe_config_dt return the platform data struct
stmmac: export probe_config_dt() and get_platform_resources()
stmmac: add proper probe function to dwmac-lpc18xx
stmmac: add proper probe function to dwmac-meson
stmmac: drop custom_* fields from plat_stmmacenet_data

 Documentation/networking/stmmac.txt                |   4 -
 .../net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c    |  59 ++++-----
 drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c  |  31 +++--
 .../net/ethernet/stmicro/stmmac/stmmac_platform.c  | 136 ++++++++++++---------
 .../net/ethernet/stmicro/stmmac/stmmac_platform.h  |   8 ++
 include/linux/stmmac.h                             |   2 -
 6 files changed, 126 insertions(+), 114 deletions(-)
Signature · 1 line
1.8.0