]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-rk: fix unbalanced pm_runtime_enable warnings
authorMichael Riesch <michael.riesch@wolfvision.net>
Mon, 23 Aug 2021 14:37:54 +0000 (16:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 09:37:17 +0000 (10:37 +0100)
commitdc4a9e30b0c4c8a5a53015dc98b4ba507bfb0307
tree1657e7dbe66ed95f5f6b940e147b537957f7ee56
parentc95d987bf1b816a1be78ba1f129d3b001f1f1ead
net: stmmac: dwmac-rk: fix unbalanced pm_runtime_enable warnings

This reverts commit 3a98eb5d85876b1b50ae2f73e36519b23f533cf9
"net: stmmac: dwmac-rk: add pd_gmac support for rk3399" and fixes
unbalanced pm_runtime_enable warnings.

In the commit to be reverted, support for power management was
introduced to the Rockchip glue code. Later, power management support
was introduced to the stmmac core code, resulting in multiple
invocations of pm_runtime_{enable,disable,get_sync,put_sync}.

The multiple invocations happen in rk_gmac_powerup and
stmmac_{dvr_probe, resume} as well as in rk_gmac_powerdown and
stmmac_{dvr_remove, suspend}, respectively, which are always called
in conjunction.

Fixes: 9a84d76486da8fec255159c66e7f7adcbadf8d52 ("net: stmmac: add clocks management for gmac driver")
Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c