From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiner Kallweit Subject: [PATCH net-next v2 0/2] net: phy: add functionality to speed down PHY when waiting for WoL packet Date: Thu, 12 Jul 2018 21:30:19 +0200 Message-ID: <960fde9d-3a1a-3976-7f93-3d8835fd8c42@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "netdev@vger.kernel.org" To: Andrew Lunn , Florian Fainelli , David Miller Return-path: Received: from mail-wm0-f67.google.com ([74.125.82.67]:38869 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726443AbeGLTlY (ORCPT ); Thu, 12 Jul 2018 15:41:24 -0400 Received: by mail-wm0-f67.google.com with SMTP id 69-v6so7136114wmf.3 for ; Thu, 12 Jul 2018 12:30:27 -0700 (PDT) Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: Some network drivers include functionality to speed down the PHY when suspending and just waiting for a WoL packet because this saves energy. This patch is based on our recent discussion about factoring out this functionality to phylib. First user will be the r8169 driver. v2: - add warning comment to phy_speed_down regarding usage of sync = false - remove sync parameter from phy_speed_up Heiner Kallweit (2): net: phy: add helper phy_config_aneg net: phy: add phy_speed_down and phy_speed_up drivers/net/phy/phy.c | 91 +++++++++++++++++++++++++++++++++++++++++-- include/linux/phy.h | 2 + 2 files changed, 89 insertions(+), 4 deletions(-) -- 2.18.0