]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: anarion: clean up interface parsing
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 14 Apr 2025 09:06:05 +0000 (10:06 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:36:01 +0000 (08:36 -0700)
commita55ec9c811aa25504951113b45e1df60ab6d751c
tree6dc967f14dbbbbb3b785365fc1d772d11762cc85
parentc30a45a7e072cd1cb9887daba7446ae653b12801
net: stmmac: anarion: clean up interface parsing

anarion_config_dt() used a switch statement to check for the RGMII
modes, complete with an unnecessary "fallthrough", and also printed
the numerical value of the PHY interface mode on error. Clean this
up using the phy_interface_mode_is_rgmii() helper, and print the
English version of the PHY interface mode on error.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1u4FlV-000XjG-83@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c