[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170327184721.30275-1-f.fainelli@gmail.com>
Date: Mon, 27 Mar 2017 11:47:18 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, andrew@...n.ch, rmk+kernel@...linux.org.uk,
Florian Fainelli <f.fainelli@...il.com>
Subject: [PATCH RFC net-next 0/3] net: phy: Read if PHY can stop its clock
This patch series update PHYLIB to read whether the PHY is actually capable of
stopping its clocks during EEE low power modes.
One problem (not the only one) with phy_init_eee() is that it takes a
clk_stop_enable argument that the caller has no idea how to determine.
This patch series makes the PHY library read whether the PHY is capable of
stopping its clock (after config_init has been called) which will allow
future patches to rename clk_stop_enable into something that conveys an
intention (and therefore could fail if the PHY does not support it).
Florian Fainelli (3):
net: mdio: add definition for MDIO_STAT1_CLOCK_STOP_CAPABLE
net: phy: read whether PHY supports stopping clock during LPI
net: phy: stop the PHY clock during LPI only if supported
drivers/net/phy/phy.c | 2 +-
drivers/net/phy/phy_device.c | 23 ++++++++++++++++++++++-
include/linux/phy.h | 2 ++
include/uapi/linux/mdio.h | 1 +
4 files changed, 26 insertions(+), 2 deletions(-)
--
2.9.3
Powered by blists - more mailing lists