Message ID | 20230306145354.7439-2-marex@denx.de |
---|---|
State | Accepted |
Commit | 6c7e559864d6f3fb6c8702b51b8a55ff2d5245c7 |
Delegated to: | Stefano Babic |
Headers | show |
Series | [v4,01/14] clk: imx8mp: Add EQoS MAC clock | expand |
> Move the board_interface_eth_init() into common ethernet uclass code, > since this function could be shared by multiple drivers. > Reviewed-by: Simon Glass <sjg@chromium.org> > Signed-off-by: Marek Vasut <marex@denx.de> Applied to u-boot-imx, next, thanks ! Best regards, Stefano Babic
diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index 112deb546de..0cae2cf2064 100644 --- a/drivers/net/dwc_eth_qos.c +++ b/drivers/net/dwc_eth_qos.c @@ -1412,13 +1412,6 @@ err_free_reset_eqos: return ret; } -/* board-specific Ethernet Interface initializations. */ -__weak int board_interface_eth_init(struct udevice *dev, - phy_interface_t interface_type) -{ - return 0; -} - static int eqos_probe_resources_stm32(struct udevice *dev) { struct eqos_priv *eqos = dev_get_priv(dev); diff --git a/net/eth-uclass.c b/net/eth-uclass.c index b01a910938e..c393600fabc 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -49,6 +49,13 @@ struct eth_uclass_priv { /* eth_errno - This stores the most recent failure code from DM functions */ static int eth_errno; +/* board-specific Ethernet Interface initializations. */ +__weak int board_interface_eth_init(struct udevice *dev, + phy_interface_t interface_type) +{ + return 0; +} + static struct eth_uclass_priv *eth_get_uclass_priv(void) { struct uclass *uc;