mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
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: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d265cf48ea
commit
79820e725f
1 changed files with 4 additions and 0 deletions
|
@ -2234,6 +2234,8 @@ fec_suspend(struct device *dev)
|
|||
fec_stop(ndev);
|
||||
netif_device_detach(ndev);
|
||||
}
|
||||
if (fep->clk_ptp)
|
||||
clk_disable_unprepare(fep->clk_ptp);
|
||||
if (fep->clk_enet_out)
|
||||
clk_disable_unprepare(fep->clk_enet_out);
|
||||
clk_disable_unprepare(fep->clk_ipg);
|
||||
|
@ -2262,6 +2264,8 @@ fec_resume(struct device *dev)
|
|||
clk_prepare_enable(fep->clk_ipg);
|
||||
if (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)) {
|
||||
fec_restart(ndev, fep->full_duplex);
|
||||
netif_device_attach(ndev);
|
||||
|
|
Loading…
Reference in a new issue