]> git.ipfire.org Git - thirdparty/linux.git/commit
net: stmmac: socfpga: provide init function
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 17 Apr 2025 17:13:17 +0000 (18:13 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Apr 2025 01:47:57 +0000 (18:47 -0700)
commit0dbd4a6f57c29a6df89dfa02d2bc5c54e2ae0eaf
treea3d08ac6079a8cb513facaaa360fd636e9652739
parent9276bfc2df92c6c45a963dea34d8c83656987ea7
net: stmmac: socfpga: provide init function

Both the resume and probe path needs to configure the phy mode, so
provide a common function to do this which can later be hooked into
plat_dat->init.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tested-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/E1u5Snd-001IJe-Cx@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c