]> 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)
commit0d82452dc26b328409e19f083b898abce28c434f
tree1657e7dbe66ed95f5f6b940e147b537957f7ee56
parent960976465b6bb120c5e77758be48f7476bfc4cb1
net: stmmac: dwmac-rk: fix unbalanced pm_runtime_enable warnings

This reverts commit 6a663c0fb6cd26506a479907226c0f4e58212215
"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: 65c2abbd92584c93861fd26c900131faefd1e191 ("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