Commit 79820e72 authored by Fabio Estevam's avatar Fabio Estevam Committed by David S. Miller

fec: Enable/disable clk_ptp in suspend/resume

clk_ptp should also be enabled in fec_resume() and disabled in fec_suspend().
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d265cf48
...@@ -2234,6 +2234,8 @@ fec_suspend(struct device *dev) ...@@ -2234,6 +2234,8 @@ fec_suspend(struct device *dev)
fec_stop(ndev); fec_stop(ndev);
netif_device_detach(ndev); netif_device_detach(ndev);
} }
if (fep->clk_ptp)
clk_disable_unprepare(fep->clk_ptp);
if (fep->clk_enet_out) if (fep->clk_enet_out)
clk_disable_unprepare(fep->clk_enet_out); clk_disable_unprepare(fep->clk_enet_out);
clk_disable_unprepare(fep->clk_ipg); clk_disable_unprepare(fep->clk_ipg);
...@@ -2262,6 +2264,8 @@ fec_resume(struct device *dev) ...@@ -2262,6 +2264,8 @@ fec_resume(struct device *dev)
clk_prepare_enable(fep->clk_ipg); clk_prepare_enable(fep->clk_ipg);
if (fep->clk_enet_out) if (fep->clk_enet_out)
clk_prepare_enable(fep->clk_enet_out); clk_prepare_enable(fep->clk_enet_out);
if (fep->clk_ptp)
clk_prepare_enable(fep->clk_ptp);
if (netif_running(ndev)) { if (netif_running(ndev)) {
fec_restart(ndev, fep->full_duplex); fec_restart(ndev, fep->full_duplex);
netif_device_attach(ndev); netif_device_attach(ndev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment