net: stmmac: disable/enable ptp_ref_clk in suspend/resume flow
authorBiao Huang <biao.huang@mediatek.com>
Tue, 15 Oct 2019 03:24:44 +0000 (11:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:21:54 +0000 (09:21 +0100)
commita7fbbbbd17c1eb283d304a3fb5b6335780d7af17
treec8b0df7bdf36ffcdb2d3542be7f890336c465a32
parentaf239a783632f69b88573de506ca13d126554d6c
net: stmmac: disable/enable ptp_ref_clk in suspend/resume flow

[ Upstream commit e497c20e203680aba9ccf7bb475959595908ca7e ]

disable ptp_ref_clk in suspend flow, and enable it in resume flow.

Fixes: f573c0b9c4e0 ("stmmac: move stmmac_clk, pclk, clk_ptp_ref and stmmac_rst to platform structure")
Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c