Skip to content

net: stmmac: remove unnecessary of_get_phy_mode() calls

Russell King (Oracle) linux-amlogic linux-arm-kernel linux-arm-msm linux-mediatek linux-sunxi netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest0 of 9 patches 1 replyApplied
  2. v10 of 9 patches 1 replySuperseded

Changes in v2 from the cover letter

- correct subject for patch 3
- fix build error in patch 3
- add attributations

Patches in v2 Applied

None of the 9 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchMichal KubiakAndre PrzywaraJernej SkrabecJacob Keller
SeriesR-b R-b R-b R-b R-b R-b R-b R-b R-b A-b R-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 4 reviewers.

Read the v2 thread

Cover letter [PATCH net-next v2 0/9] net: stmmac: remove unnecessary of_get_phy_mode() calls

Hi,

This series removes unnecessary of_get_phy_mode() calls from the stmmac glue drivers. stmmac_probe_config_dt() / devm_stmmac_probe_config_dt() already gets the interface mode using device_get_phy_mode() and stores it in plat_dat->phy_interface.

Therefore, glue drivers using of_get_phy_mode() are just duplicating the work that has already been done.

This series adjusts the glue drivers to remove their usage of of_get_phy_mode().

Changes in v2:
- correct subject for patch 3
- fix build error in patch 3
- add attributations

 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c | 21 +++++++++------------
 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c | 12 ++++--------
 .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c    |  8 +-------
 drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c |  6 +-----
 .../net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c |  4 +---
 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c      |  2 +-
 drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c     | 12 ++++--------
 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c   |  8 +-------
 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c   |  6 +-----
 9 files changed, 23 insertions(+), 56 deletions(-)
Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!