[PATCH 0/3] net: stmmac: probing config with fwnode instead of of

From: Soha Jin
Date: Sun Oct 09 2022 - 12:23:58 EST


These patches depend on two other patches:
- net: mdiobus: add fwnode_phy_is_fixed_link()
https://lore.kernel.org/lkml/20221009162006.1289-1-soha@xxxxxxxxx/
- device property: add fwnode_is_compatible() for compatible match
https://lore.kernel.org/lkml/20221009162155.1318-1-soha@xxxxxxxxx/

Patch 1 changes the stmmac's configuration probing from `of` to `fwnode`,
which enables the compatibility of stmmac devices described by ACPI.

Patch 2 adds Phytium's GMAC (ACPI HID PHYT0004) to the dwmac-generic
driver, this is also the device I used to test Patch 1.

Patch 3 changes all `stmmac_{probe,remove}_config_dt` to
`stmmac_platform_{probe,remove}_config`, since the function is renamed in
Patch 1.

Soha Jin (3):
net: stmmac: use fwnode instead of of to configure driver
net: stmmac: add Phytium's PHYT0004 to dwmac-generic compatible
devices
net: stmmac: switch to stmmac_platform_{probe,remove}_config

.../ethernet/stmicro/stmmac/dwmac-anarion.c | 4 +-
.../stmicro/stmmac/dwmac-dwc-qos-eth.c | 6 +-
.../ethernet/stmicro/stmmac/dwmac-generic.c | 30 +-
.../net/ethernet/stmicro/stmmac/dwmac-imx.c | 4 +-
.../ethernet/stmicro/stmmac/dwmac-ingenic.c | 4 +-
.../stmicro/stmmac/dwmac-intel-plat.c | 4 +-
.../ethernet/stmicro/stmmac/dwmac-ipq806x.c | 4 +-
.../ethernet/stmicro/stmmac/dwmac-lpc18xx.c | 4 +-
.../ethernet/stmicro/stmmac/dwmac-mediatek.c | 4 +-
.../net/ethernet/stmicro/stmmac/dwmac-meson.c | 4 +-
.../ethernet/stmicro/stmmac/dwmac-meson8b.c | 4 +-
.../net/ethernet/stmicro/stmmac/dwmac-oxnas.c | 4 +-
.../stmicro/stmmac/dwmac-qcom-ethqos.c | 4 +-
.../net/ethernet/stmicro/stmmac/dwmac-rk.c | 13 +-
.../ethernet/stmicro/stmmac/dwmac-socfpga.c | 4 +-
.../net/ethernet/stmicro/stmmac/dwmac-sti.c | 4 +-
.../net/ethernet/stmicro/stmmac/dwmac-stm32.c | 4 +-
.../net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 6 +-
.../net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 4 +-
.../ethernet/stmicro/stmmac/dwmac-visconti.c | 6 +-
.../net/ethernet/stmicro/stmmac/stmmac_main.c | 7 +-
.../net/ethernet/stmicro/stmmac/stmmac_mdio.c | 14 +-
.../ethernet/stmicro/stmmac/stmmac_platform.c | 409 ++++++++++--------
.../ethernet/stmicro/stmmac/stmmac_platform.h | 10 +-
include/linux/stmmac.h | 7 +-
25 files changed, 320 insertions(+), 248 deletions(-)

--
2.30.2