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

From: Andrew Lunn
Date: Sun Dec 05 2021 - 10:57:07 EST


> 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