[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <41bb2c8d963e890768bceb477488250e@manjaro.org>
Date: Thu, 06 Mar 2025 22:41:03 +0100
From: Dragan Simic <dsimic@...jaro.org>
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>, netdev@...r.kernel.org,
linux-rockchip@...ts.infradead.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/3] Use DELAY_ENABLE macro for RK3328, RK3566/RK3568 and
RK3588
Hello Jonas,
On 2025-03-06 21:38, Jonas Karlman wrote:
> Almost all Rockchip GMAC variants use the DELAY_ENABLE macro to help
> enable or disable use of MAC rx/tx delay. However, RK3328,
> RK3566/RK3568
> and RK3588 GMAC driver does not.
>
> Use of the DELAY_ENABLE macro help ensure the MAC rx/tx delay is
> disabled, instead of being enabled and using a zero delay, when
> RGMII_ID/RXID/TXID is used.
>
> RK3328 driver was merged around the same time as when DELAY_ENABLE was
> introduced so it is understandable why it was missed. Both
> RK3566/RK3568
> and RK3588 support were introduced much later yet they also missed
> using
> the DELAY_ENABLE macro (so did vendor kernel at that time).
>
> This series fixes all these cases to unify how GMAC delay feature is
> enabled or disabled across the different GMAC variants.
>
> Jonas Karlman (3):
> net: stmmac: dwmac-rk: Use DELAY_ENABLE macro for RK3328
> net: stmmac: dwmac-rk: Use DELAY_ENABLE macro for RK3566/RK3568
> net: stmmac: dwmac-rk: Use DELAY_ENABLE macro for RK3588
>
> .../net/ethernet/stmicro/stmmac/dwmac-rk.c | 19 ++++++++++---------
> 1 file changed, 10 insertions(+), 9 deletions(-)
As far as I can tell, the RV1126 GMAC should also be converted to use
the DELAY_ENABLE macro, which the vendor kernel already does. [*]
Perhaps
that could be performed in new patch 4/4 in this series?
BTW, it would be quite neat to introduce the DELAY_VALUE macro, which
makes the function calls a bit more compact. [*]
[*]
https://raw.githubusercontent.com/rockchip-linux/kernel/refs/heads/develop-5.10/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
Powered by blists - more mailing lists