Re: [PATCH net-next 1/1] net: mdio: reset PHY before attempting to access ID register

Buday Csaba
2025-11-26T07:03:25Z

On Tue, Nov 25, 2025 at 06:43:35PM -0800, Jakub Kicinski wrote:
> On Tue, 25 Nov 2025 12:15:51 +0100 Buday Csaba wrote:
> > When the ID of an Ethernet PHY is not provided by the 'compatible'
> > string in the device tree, its actual ID is read via the MDIO bus.
> > For some PHYs this could be unsafe, since a hard reset may be
> > necessary to safely access the MDIO registers.
>
> You may be missing exports because it doesn't build with allmodconfig:
>
> ERROR: modpost: "mdio_device_register_reset" [drivers/net/mdio/fwnode_mdio.ko] undefined!
> ERROR: modpost: "mdio_device_unregister_reset" [drivers/net/mdio/fwnode_mdio.ko] undefined!
> --
> pw-bot: cr
>

I do not know how, but I missed that.

The previous version has built fine, but the declarations were moved to
an internal header file, so I guess that EXPORT_SYMBOL on either of these
functions would not be appropriate anymore.

I must find an other solution.

Regards,
Csaba