[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7607d394-9659-4bb0-af14-8a3633cfc89c@lunn.ch>
Date: Sat, 30 Aug 2025 21:27:33 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Kohei Enju <enjuk@...zon.com>
Cc: intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
Tony Nguyen <anthony.l.nguyen@...el.com>,
Przemek Kitszel <przemyslaw.kitszel@...el.com>,
Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Vitaly Lifshits <vitaly.lifshits@...el.com>, kohei.enju@...il.com
Subject: Re: [PATCH v1 iwl-net] igc: power up PHY before link test
On Sun, Aug 31, 2025 at 02:06:19AM +0900, Kohei Enju wrote:
> The current implementation of igc driver doesn't power up PHY before
> link test in igc_ethtool_diag_test(), causing the link test to always
> report FAIL when admin state is down and PHY is consequently powered
> down.
>
> To test the link state regardless of admin state, let's power up PHY in
> case of PHY down before link test.
Maybe you should power the PHY down again after the test?
Alternatively, just return -ENOTDOWN is the network is admin down.
Andrew
Powered by blists - more mailing lists