[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <n6frqyzi2rn3sbzmmerq5ennoo6dn2husrtw3qzbtummpjutc7@2bu2753xrb7a>
Date: Sun, 9 Mar 2025 22:17:29 +0100
From: Sebastian Reichel <sebastian.reichel@...labora.com>
To: Jonas Karlman <jonas@...boo.se>
Cc: Heiko Stuebner <heiko@...ech.de>, Andrew Lunn <andrew+netdev@...n.ch>,
"David S . Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>, netdev@...r.kernel.org,
linux-rockchip@...ts.infradead.org, devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 0/3] net: stmmac: dwmac-rk: Validate GRF and
peripheral GRF during probe
Hi,
On Sat, Mar 08, 2025 at 09:37:12PM +0000, Jonas Karlman wrote:
> All Rockchip GMAC variants typically write to GRF regs to control e.g.
> interface mode, speed and MAC rx/tx delay. Newer SoCs such as RK3576 and
> RK3588 use a mix of GRF and peripheral GRF regs. These syscon regmaps 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 GRF and peripheral GRF syscon regmap
> at probe time to help simplify the SoC specific operations.
>
> This should not introduce any backward compatibility issues as all
> GMAC nodes have been added together with a rockchip,grf phandle (and
> rockchip,php-grf where required) in their initial commit.
>
> Changes in v2:
> - Split removal of the IS_ERR() check in each SoC specific operation to
> a separate patch
> - Disable rockchip,php-grf in schema for GMAC not requiring it
> - Add a php_grf_required flag to indicate when peripheral GRF is
> required
> - Only lookup rockchip,php-grf phandle when php_grf_required is true
> - Use ERR_CAST() instead of ERR_PTR()
>
> Jonas Karlman (3):
> dt-bindings: net: rockchip-dwmac: Require rockchip,grf and
> rockchip,php-grf
> net: stmmac: dwmac-rk: Validate GRF and peripheral GRF during probe
> net: stmmac: dwmac-rk: Remove unneeded GRF and peripheral GRF checks
>
> .../bindings/net/rockchip-dwmac.yaml | 21 +-
> .../net/ethernet/stmicro/stmmac/dwmac-rk.c | 270 ++----------------
> 2 files changed, 37 insertions(+), 254 deletions(-)
The series is
Reviewed-by: Sebastian Reichel <sebastian.reichel@...labora.com>
-- Sebastian
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists