[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c16c6440-bf79-42a1-a330-68d9bb96f75c@lunn.ch>
Date: Tue, 12 Nov 2024 20:43:43 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Sean Nyekjaer <sean@...nix.com>
Cc: Wei Fang <wei.fang@....com>, Andrew Lunn <andrew+netdev@...n.ch>,
imx@...ts.linux.dev, netdev@...r.kernel.org
Subject: Re: Initialize ethernet phy in low power mode before ndo_open
On Tue, Nov 12, 2024 at 01:36:37PM +0100, Sean Nyekjaer wrote:
> Hi,
>
> I'm using a imx6ull, we have an unused ethernet on our board. We would
> like it to use as little power as possible as it's battery operated.
> During probe I would expect the ethernet driver to probe the phy
> deivce and set it in low power mode (BMCR_PDOWN).
> The bit is correcly set if I up/down the interface, is that prefered
> behavior?
>
> I can see it's the same stmmac driver for stm32mp1 etc.
>
> I can also set the phy in low power mode in the bootloader, but then the
> fec driver would reset phy and we end up where we started.
There are conflicting requirements here. Most users want the interface
up as quickly as possible. Autoneg takes a little over 1 second, which
if you force the interface down in probe means open will take up to 1
second longer before the interface is usable.
Few users want minimal power requirements, which is the conflicting
requirement.
Changing the default is going to cause regressions and developers will
complain their board takes longer to boot. So your best bet is to
up/down the unused interface. Or if you don't need it at all, mark it
as disabled in DT.
Andrew
Powered by blists - more mailing lists