Subject: Re: [PATCH v3 1/2] modpost: file2alias: make mdio alias configure match mdio uevent

From: Andrew Lunn <[email-masked]>
Date: Sun, 5 Dec 2021 16:56:44 +0100

> The modalias string provided in the uevent sysfs file does not conform
> to the format used in PHY driver modules. One of the reasons is that
> udev loading of PHY driver modules has not been an expected use case.
> 
> This patch changes the MODALIAS entry for only PHY devices from:
> 	MODALIAS=of:Nethernet-phyT(null)
> to:
> 	MODALIAS=mdio:00000000001000100001010100010011

Hi Russell

You patch looks good for the straight forward cases.

What happens in the case of

        ethernet-phy@0 {
            compatible = "ethernet-phy-ieee802.3-c45";

Does this get appended to the end, or does it overwrite?

     Andrew