summaryrefslogtreecommitdiff
path: root/include/netdev.h
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2024-11-23 17:52:46 +0100
committerFabio Estevam <festevam@gmail.com>2024-11-25 23:07:37 -0300
commita57ef36323eb65d3d83c504f9f0a9ad831ec825c (patch)
tree13e9369d43d254b68a7fe3d62ddee46d72cad40a /include/netdev.h
parenta1766d55e5766fb8fb5723bc599f7dd2cc999f6c (diff)
net: fec_mxc: fix probing for imx8qxp
probing on capricorn board (imx8qxp based) brings: Can't find FEC0 clk rate: -19 Cause is that when probing fec_mxc driver, fec_mii_setspeed() is called which calls fec_get_clk_rate(). fec_mii_setspeed() calls fec_get_clk_rate with NULL pointer for udev and so as in IMX8QXP case CLK_CCF is enabled udev gets searched with: uclass_get_device_by_seq(UCLASS_ETH, idx, &dev); but we do not have yet a UCLASS_ETH ! as we just probing it! Prevent this by passing udev to fec_get_clk_rate() Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include/netdev.h')
-rw-r--r--include/netdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/netdev.h b/include/netdev.h
index 2a06d9a261b..949245ecdec 100644
--- a/include/netdev.h
+++ b/include/netdev.h
@@ -117,7 +117,7 @@ static inline int pci_eth_init(struct bd_info *bis)
return num;
}
-struct mii_dev *fec_get_miibus(ulong base_addr, int dev_id);
+struct mii_dev *fec_get_miibus(struct udevice *dev, ulong base_addr, int dev_id);
#ifdef CONFIG_PHYLIB
struct phy_device;