diff options
author | Andrew Lunn <andrew@lunn.ch> | 2015-07-25 23:38:02 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-27 11:21:47 +0300 |
commit | 8fff755e9f8d0f70a595e79f248695ce6aef5cc3 (patch) | |
tree | dbaf78056303cdc56757fe65f1714ff70c8a1b30 /drivers/hwmon/w83793.c | |
parent | 7025e88a79d64aa4ba58fd03d630a78b12cce6ae (diff) | |
download | linux-8fff755e9f8d0f70a595e79f248695ce6aef5cc3.tar.xz |
net: fec: Ensure clocks are enabled while using mdio bus
When a switch is attached to the mdio bus, the mdio bus can be used
while the interface is not open. If the IPG clock is not enabled, MDIO
reads/writes will simply time out.
Add support for runtime PM to control this clock. Enable/disable this
clock using runtime PM, with open()/close() and mdio read()/write()
function triggering runtime PM operations. Since PM is optional, the
IPG clock is enabled at probe and is no longer modified by
fec_enet_clk_enable(), thus if PM is not enabled in the kernel, it is
guaranteed the clock is running when MDIO operations are performed.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Cc: tyler.baker@linaro.org
Cc: fabio.estevam@freescale.com
Cc: shawn.guo@linaro.org
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Tyler Baker <tyler.baker@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/hwmon/w83793.c')
0 files changed, 0 insertions, 0 deletions