Subject: Re: net: macb: fail when there's no PHY

From: Grant Edwards <[email-masked]>
Date: Thu, 3 Dec 2020 03:54:57 -0000 (UTC)

On 2020-12-03, Florian Fainelli <[email-masked]> wrote:

> You would have to have a local hack that intercepts the macb_ioctl()
> and instead of calling phylink_mii_ioctl() it would have to
> implement a custom ioctl() that does what
> drivers/net/phy/phy.c::phy_mii_ioctl does except the mdiobus should
> be pointed to the MACB MDIO bus instance and not be derived from the
> phy_device instance (because that one points to the fixed PHY).

So I can avoid my local hack to macb_main.c by doing a doing a local
hack to macb_main.c?

--
Grant