Skip to content

stmmac: probe code refactoring and clean up part 1

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4stmmac: move driver data setting into stmmac_dvr_probedrivers/net/ethernet/stmicro/stmmac/stmmac_main.c drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c+2 -40 replies
2/4stmmac: let stmmac_dvr_probe take a struct of resourcesdrivers/net/ethernet/stmicro/stmmac/stmmac.h drivers/net/ethernet/stmicro/stmmac/stmmac_main.c drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c +1 more+45 -350 replies
3/4stmmac: change the stmmac_dvr_probe return type to intdrivers/net/ethernet/stmicro/stmmac/stmmac.h drivers/net/ethernet/stmicro/stmmac/stmmac_main.c drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c +1 more+12 -310 replies
4/4stmmac: drop unnecessary dt checks in stmmac_probe_config_dtdrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c+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/4] stmmac: probe code refactoring and clean up part 1

This patch set refactor the code in stmmac_pci_probe and stmmac_pltfr_probe and moves the common bits into stmmac_dvr_probe. Along the way some clean- ups are applied to stmmac_pltfr_probe.

The code has been tested on the LPC18xx platform.

I am still working on more refactoring of the platform probe code, hence part 1, but I need some more time on this.

Joachim Eastwood (4):
stmmac: move driver data setting into stmmac_dvr_probe
stmmac: let stmmac_dvr_probe take a struct of resources
stmmac: change the stmmac_dvr_probe return type to int
stmmac: drop unnecessary dt checks in stmmac_probe_config_dt

 drivers/net/ethernet/stmicro/stmmac/stmmac.h       | 14 +++--
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  | 30 +++++++----
 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c   | 19 +++----
 .../net/ethernet/stmicro/stmmac/stmmac_platform.c  | 62 +++++++---------------
 4 files changed, 54 insertions(+), 71 deletions(-)
Signature · 1 line
1.8.0