diff options
author | Heiko Schocher <hs@denx.de> | 2024-11-23 17:52:46 +0100 |
---|---|---|
committer | Fabio Estevam <festevam@gmail.com> | 2024-11-25 23:07:37 -0300 |
commit | a57ef36323eb65d3d83c504f9f0a9ad831ec825c (patch) | |
tree | 13e9369d43d254b68a7fe3d62ddee46d72cad40a /lib/tiny-printf.c | |
parent | a1766d55e5766fb8fb5723bc599f7dd2cc999f6c (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 'lib/tiny-printf.c')
0 files changed, 0 insertions, 0 deletions