[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181130184546.28384-1-anssi.hannula@bitwise.fi>
Date: Fri, 30 Nov 2018 20:45:44 +0200
From: Anssi Hannula <anssi.hannula@...wise.fi>
To: Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>
Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: [PATCH 0/2] net: phy: fixes to PHY_HALTED handling
Hi all,
Here are a couple of fixes for PHY_HALTED/PHY_RESUMING handling.
On a related note, it feels a bit strange that AFAICS phydevs will only
be put to powerdown state (via PHY_HALTED) after the network interface
has been brought up and down once. If the ethernet interface is never
brought up, the phydev remains powered on (in PHY_READY).
This is because the phydev is only put to PHY_HALTED from phy_stop() and
phy_error(), and phy_stop() seems to be normally called only from
.ndo_stop().
But I didn't touch that now as I wasn't sure what is the intent there.
Anssi Hannula (2):
net: phy: suspend phydev on PHY_HALTED even if there is no link
net: phy: ensure autoneg is configured when resuming a phydev
drivers/net/phy/phy.c | 13 +++++++++++--
include/linux/phy.h | 2 ++
2 files changed, 13 insertions(+), 2 deletions(-)
--
Anssi Hannula / Bitwise Oy
Powered by blists - more mailing lists