[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8735eb08-92de-4489-9e52-fee91c9ed23e@lunn.ch>
Date: Mon, 23 Jun 2025 19:55:03 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Maxime Chevallier <maxime.chevallier@...tlin.com>
Cc: Kamil Horák - 2N <kamilh@...s.com>,
florian.fainelli@...adcom.com,
bcm-kernel-feedback-list@...adcom.com, hkallweit1@...il.com,
linux@...linux.org.uk, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, krzk+dt@...nel.org,
conor+dt@...nel.org, netdev@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
robh@...nel.org
Subject: Re: [PATCH net-next v2 2/3] net: phy: bcm5481x: Implement MII-Lite
mode
On Mon, Jun 23, 2025 at 05:51:35PM +0200, Maxime Chevallier wrote:
> Hi Kamil,
>
> On Mon, 23 Jun 2025 17:10:46 +0200
> Kamil Horák - 2N <kamilh@...s.com> wrote:
>
> > From: Kamil Horák (2N) <kamilh@...s.com>
> >
> > The Broadcom bcm54810 and bcm54811 PHYs are capable to operate in
> > simplified MII mode, without TXER, RXER, CRS and COL signals as defined
> > for the MII. While the PHY can be strapped for MII mode, the selection
> > between MII and MII-Lite must be done by software.
> > The MII-Lite mode can be used with some Ethernet controllers, usually
> > those used in automotive applications. The absence of COL signal
> > makes half-duplex link modes impossible but does not interfere with
> > BroadR-Reach link modes on Broadcom PHYs, because they are full-duplex
> > only. The MII-Lite mode can be also used on an Ethernet controller with
> > full MII interface by just leaving the input signals (RXER, CRS, COL)
> > inactive.
>
> I'm following-up to Andrew's suggestion of making it a dedicated
> phy-mode. You say that this requires only phy-side configuration,
> however you also say that with MII-lite, you can't do half-duplex.
>
> Looking at the way we configure the MAC to PHY link, how can the MAC
> driver know that HD isn't available if this is a phy-only property ?
One would hope that when the PHY is configured to -lite, it changes
its abilities register to indicate it does not support half duplex
modes? But without looking at the datasheet, i've no idea if it
actually does.
There is also an ordering issuer, it needs to be put into -lite mode
before phy_probe reads the abilities, which is after the probe()
method is called. However, at this point, we don't know the interface
mode, that only comes later.
So this gets interesting, and there is no indication in the commit
message this has been thought about.
Andrew
---
pw-bot: cr
Powered by blists - more mailing lists