[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <81d5c1f2-e912-40de-a870-290b0cf054b3@lunn.ch>
Date: Thu, 23 Oct 2025 20:46:00 +0200
From: Andrew Lunn <andrew@...n.ch>
To: "Russell King (Oracle)" <rmk+kernel@...linux.org.uk>
Cc: 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>,
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>,
Richard Cochran <richardcochran@...il.com>
Subject: Re: [PATCH net-next 2/8] net: stmmac: simplify stmmac_get_version()
On Thu, Oct 23, 2025 at 10:37:29AM +0100, Russell King (Oracle) wrote:
> We can simplify stmmac_get_version() by pre-initialising the version
> members to zero, detecting the MAC100 core and returning, otherwise
> determining the version register offset separately from calling
> stmmac_get_id() and stmmac_get_dev_id(). Do this.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@...linux.org.uk>
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Andrew
Powered by blists - more mailing lists