[PATCH net-next 2/8] net: stmmac: simplify stmmac_get_version()
Andrew Lunn
andrew at lunn.ch
Thu Oct 23 11:46:00 PDT 2025
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 at armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew at lunn.ch>
Andrew
More information about the linux-arm-kernel
mailing list