mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
a1766d55e5
commit
a57ef36323
4 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue