[PATCH 1/1] net: spacemit: display phy driver information
Andrew Lunn
andrew at lunn.ch
Thu Jan 22 07:18:25 PST 2026
On Thu, Jan 22, 2026 at 11:06:01PM +0800, Chukun Pan wrote:
> Hi,
>
> > > Print the PHY driver used and interrupt status after connection.
> >
> > The standard way to do this is call phy_attached_info(). Is it missing
> > some information you need?
>
> I initially used phy_attached_info(), but it was too long and printed
> phydev_name() "cac80000.ethernet:01" twice:
>
> YT8531 Gigabit Ethernet cac80000.ethernet:01: attached PHY driver (mii_bus:phy_addr=cac80000.ethernet:01, irq=POLL)
This is what everybody expects, so you should use it.
You have some control over the names, it is the name you assign when
creating the struct device. Maybe you can shorten them.
Andrew
More information about the linux-riscv
mailing list