[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aQnJRgJqFY99kDUj@lsv051416.swis.nl-cdc01.nxp.com>
Date: Tue, 4 Nov 2025 10:37:10 +0100
From: Jan Petrous <jan.petrous@....nxp.com>
To: "Russell King (Oracle)" <rmk+kernel@...linux.org.uk>
Cc: Andrew Lunn <andrew@...n.ch>, Heiner Kallweit <hkallweit1@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Fabio Estevam <festevam@...il.com>, imx@...ts.linux.dev,
Jakub Kicinski <kuba@...nel.org>,
linux-arm-kernel@...ts.infradead.org,
linux-stm32@...md-mailman.stormreply.com,
Maxime Coquelin <mcoquelin.stm32@...il.com>, netdev@...r.kernel.org,
Paolo Abeni <pabeni@...hat.com>,
Pengutronix Kernel Team <kernel@...gutronix.de>, s32@....com,
Sascha Hauer <s.hauer@...gutronix.de>,
Shawn Guo <shawnguo@...nel.org>
Subject: Re: [PATCH net-next 02/11] net: stmmac: s32: move PHY_INTF_SEL_x
definitions out of the way
On Mon, Nov 03, 2025 at 11:50:00AM +0000, Russell King (Oracle) wrote:
> S32's PHY_INTF_SEL_x definitions conflict with those for the dwmac
> cores as they use a different bitmapping. Add a S32 prefix so that
> they are unique.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@...linux.org.uk>
> ---
> drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c
> index ee095ac13203..2b7ad64bfdf7 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c
> @@ -24,10 +24,10 @@
> #define GMAC_INTF_RATE_125M 125000000 /* 125MHz */
>
> /* SoC PHY interface control register */
> -#define PHY_INTF_SEL_MII 0x00
> -#define PHY_INTF_SEL_SGMII 0x01
> -#define PHY_INTF_SEL_RGMII 0x02
> -#define PHY_INTF_SEL_RMII 0x08
> +#define S32_PHY_INTF_SEL_MII 0x00
> +#define S32_PHY_INTF_SEL_SGMII 0x01
> +#define S32_PHY_INTF_SEL_RGMII 0x02
> +#define S32_PHY_INTF_SEL_RMII 0x08
>
> struct s32_priv_data {
> void __iomem *ioaddr;
> @@ -40,7 +40,7 @@ struct s32_priv_data {
>
> static int s32_gmac_write_phy_intf_select(struct s32_priv_data *gmac)
> {
> - writel(PHY_INTF_SEL_RGMII, gmac->ctrl_sts);
> + writel(S32_PHY_INTF_SEL_RGMII, gmac->ctrl_sts);
>
> dev_dbg(gmac->dev, "PHY mode set to %s\n", phy_modes(*gmac->intf_mode));
>
> --
> 2.47.3
>
Reviewed-by: Jan Petrous (OSS) <jan.petrous@....nxp.com>
Thanks.
/Jan
Powered by blists - more mailing lists