]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: intel: move phy_interface init to tgl_common_data()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 1 May 2025 11:45:16 +0000 (12:45 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 3 May 2025 01:25:08 +0000 (18:25 -0700)
commit0f455d2d1bbe52e04261412991a9bdbf213e04a6
treeff9f28ebd82b823c58df5b599bb4d8465dba10a3
parentca732e990fc8222a2d6782ae750304719e212fe8
net: stmmac: intel: move phy_interface init to tgl_common_data()

Move the initialisation of plat->phy_interface to tgl_common_data()
as all callers set this same interface mode. This moves it to a
single location to make the change to get_interfaces() more obvious.

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