]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit67ca78204f8d95a56d277e494cdebf60fbdd8bb4
tree65fb6b65f2b031b2d2b5fd8cd8c86dcf0403f55e
parente8833fc80a115392852204a47783ebaafae31541
net: fec: manage ahb clock in runtime pm

BugLink: https://bugs.launchpad.net/bugs/1838576
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/freescale/fec_main.c