[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aIs2KVi6rYVhTzde@pidgin.makrotopia.org>
Date: Thu, 31 Jul 2025 10:23:53 +0100
From: Daniel Golle <daniel@...rotopia.org>
To: Markus Stockhausen <markus.stockhausen@....de>
Cc: andrew@...n.ch, hkallweit1@...il.com, linux@...linux.org.uk,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, michael@...sekall.de, netdev@...r.kernel.org,
jan@....eu
Subject: Re: [PATCH v2] net: phy: realtek: convert RTL8226-CG to c45 only
On Thu, Jul 31, 2025 at 01:44:45AM -0400, Markus Stockhausen wrote:
> The RTL8226-CG can be found on devices like the Zyxel XGS1210-12. These
> are driven by a Realtek RTL9302B SoC that has phy hardware polling
> in the background. One must decide if a port is polled via c22 or c45.
> Additionally the hardware disables MMD access in c22 mode. For reference
> see mdio-realtek-rtl9300 driver. As this PHY is mostly used in Realtek
> switches Convert the phy to a c45-only function set.
>
> [...]
> diff --git a/drivers/net/phy/realtek/realtek_main.c b/drivers/net/phy/realtek/realtek_main.c
> index dd0d675149ad..8bc68b31cd31 100644
> --- a/drivers/net/phy/realtek/realtek_main.c
> +++ b/drivers/net/phy/realtek/realtek_main.c
> [...]
> @@ -1675,11 +1690,12 @@ static struct phy_driver realtek_drvs[] = {
> }, {
> PHY_ID_MATCH_EXACT(0x001cc838),
> .name = "RTL8226-CG 2.5Gbps PHY",
> - .get_features = rtl822x_get_features,
> - .config_aneg = rtl822x_config_aneg,
> - .read_status = rtl822x_read_status,
> - .suspend = genphy_suspend,
> - .resume = rtlgen_resume,
> + .soft_reset = rtl822x_c45_soft_reset,
> + .get_features = rtl822x_c45_get_features,
> + .config_aneg = rtl822x_c45_config_aneg,
> + .read_status = rtl822x_c45_read_status,
> + .suspend = genphy_c45_pma_suspend,
> + .resume = rtlgen_c45_resume,
> .read_page = rtl821x_read_page,
> .write_page = rtl821x_write_page,
I suppose .read_page and .write_page can then be dropped as well as paged
Clause-22 access is no longer needed, right?
Powered by blists - more mailing lists