Message ID | CAEnBdDpNAbPNnAO3v2SgpzcRHY7MEbLSW+-e8Bh0OBF3qHGgGA@mail.gmail.com |
---|---|
State | New |
Headers | show |
Series | eth: Fix crash while enabling fixed-phy | expand |
diff --git a/drivers/net/ravb.c b/drivers/net/ravb.c index fb4a628d63..46e02ed14c 100644 --- a/drivers/net/ravb.c +++ b/drivers/net/ravb.c @@ -434,7 +434,8 @@ static int ravb_config(struct udevice *dev) writel(mask, eth->iobase + RAVB_REG_ECMR); - phy->drv->writeext(phy, -1, 0x02, 0x08, (0x0f << 5) | 0x19); + if (phy->drv->writeext) + phy->drv->writeext(phy, -1, 0x02, 0x08, (0x0f << 5) | 0x19); return 0; }