net: stmmac: introduce pcs_init/pcs_exit stmmac operations
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 13 May 2024 07:25:15 +0000 (09:25 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 May 2024 00:19:59 +0000 (17:19 -0700)
commitf0ef433fc264b70a415257dba126acbe3fda666b
treead82afcff7ba55fb330f94b69267dc746308daa8
parentf9cdff1bdacc947bcd182ea69d94b9f5b32ff328
net: stmmac: introduce pcs_init/pcs_exit stmmac operations

Introduce a mechanism whereby platforms can create their PCS instances
prior to the network device being published to userspace, but after
some of the core stmmac initialisation has been completed. This means
that the data structures that platforms need will be available.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Co-developed-by: Romain Gantois <romain.gantois@bootlin.com>
Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
Reviewed-by: Hariprasad Kelam <hkelam@marvell.com>
Link: https://lore.kernel.org/r/20240513-rzn1-gmac1-v7-4-6acf58b5440d@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
include/linux/stmmac.h