From: Anssi Hannula Subject: [PATCH 0/2] net: phy: fixes to PHY_HALTED handling Date: Fri, 30 Nov 2018 20:45:44 +0200 Message-ID: <20181130184546.28384-1-anssi.hannula@bitwise.fi> Cc: "David S. Miller" , netdev@vger.kernel.org To: Andrew Lunn , Florian Fainelli , Heiner Kallweit Return-path: Received: from mail.bitwise.fi ([109.204.228.163]:54406 "EHLO mail.bitwise.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbeLAF5K (ORCPT ); Sat, 1 Dec 2018 00:57:10 -0500 Sender: netdev-owner@vger.kernel.org List-ID: 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