[PATCH 0/2] net: stmmac: dwmac-rk: Validate rockchip,grf and php-grf during probe
Jonas Karlman
jonas at kwiboo.se
Thu Mar 6 13:09:44 PST 2025
All Rockchip GMAC variants require writing to GRF to configure e.g.
interface mode and MAC rx/tx delay. The GRF syscon regmap is located
with help of a rockchip,grf and rockchip,php-grf phandle.
However, validating the rockchip,grf and rockchip,php-grf syscon regmap
is deferred until e.g. interface mode or speed is configured.
This series change to validate the rockchip,grf and rockchip,php-grf
syscon regmap at probe time to help simplify the SoC specific operations.
I do not expect that this will introduce any regression. Prior to this,
use of a device tree without a rockchip,grf would fail when interface
mode or speed is configured, with this use of such device tree would
instead result in failure at probe time.
Jonas Karlman (2):
dt-bindings: net: rockchip-dwmac: Require rockchip,grf and
rockchip,php-grf
net: stmmac: dwmac-rk: Validate rockchip,grf and php-grf during probe
.../bindings/net/rockchip-dwmac.yaml | 17 +-
.../net/ethernet/stmicro/stmmac/dwmac-rk.c | 269 ++----------------
2 files changed, 32 insertions(+), 254 deletions(-)
--
2.48.1
More information about the linux-arm-kernel
mailing list