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:17:02 +0000 (09:17 +0100)
commit80a0e5d378f8ad8cb086d4018389ebec75f45fb2
tree7073d2cc28032e82ced9083ed5e3a1016a01f762
parente354aa381a670805996481b748d2f86106f9bbe4
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