[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4493e09c-e4fb-424d-a44a-1e4d4510e4e2@lunn.ch>
Date: Thu, 22 Jan 2026 16:18:25 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Chukun Pan <amadeus@....edu.cn>
Cc: andrew+netdev@...n.ch, davem@...emloft.net, dlan@...nel.org,
edumazet@...gle.com, kuba@...nel.org, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org, netdev@...r.kernel.org,
pabeni@...hat.com, spacemit@...ts.linux.dev,
wangruikang@...as.ac.cn
Subject: Re: [PATCH 1/1] net: spacemit: display phy driver information
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
Powered by blists - more mailing lists