net: fec: manage ahb clock in runtime pm
authorAndy Duan <fugang.duan@nxp.com>
Tue, 9 Apr 2019 03:40:56 +0000 (03:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:42:31 +0000 (19:42 +0200)
commit4bdd88d967f23421ff4f4c98595cb97c012afb2b
tree2f9e14267e83a6c96dc40978fe76fa46ac7a237d
parent9aad9f3abc884fcd9ef812da4029b9d40657f0de
net: fec: manage ahb clock in runtime pm

[ Upstream commit d7c3a206e6338e4ccdf030719dec028e26a521d5 ]

Some SOC like i.MX6SX clock have some limits:
- ahb clock should be disabled before ipg.
- ahb and ipg clocks are required for MAC MII bus.
So, move the ahb clock to runtime management together with
ipg clock.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/net/ethernet/freescale/fec_main.c