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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 20:53:28 +0000 (13:53 -0700)
commitd7c3a206e6338e4ccdf030719dec028e26a521d5
treec8551097fed59f707e47b87597fae71417b870b3
parentc5b493ce192bd7a4e7bd073b5685aad121eeef82
net: fec: manage ahb clock in runtime pm

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>
drivers/net/ethernet/freescale/fec_main.c