]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-rk: Fix ethernet on rk3399 based devices
authorPunit Agrawal <punitagrawal@gmail.com>
Wed, 29 Sep 2021 13:50:49 +0000 (22:50 +0900)
committerJakub Kicinski <kuba@kernel.org>
Fri, 1 Oct 2021 22:15:29 +0000 (15:15 -0700)
commit2268e5d3c4340bfa59b697de6f96bf413b4c345a
tree536c9e8f3b26a1fc1d659c157fce2b3c35c7b399
parent5103b735a0fad109b0a56e83db2bd62c310b9f7d
net: stmmac: dwmac-rk: Fix ethernet on rk3399 based devices

Commit dc4a9e30b0c4 ("net: stmmac: dwmac-rk: fix unbalanced pm_runtime_enable warnings")
while getting rid of a runtime PM warning ended up breaking ethernet
on rk3399 based devices. By dropping an extra reference to the device,
the commit ends up enabling suspend / resume of the ethernet device -
which appears to be broken.

While the issue with runtime pm is being investigated, partially
revert commit dc4a9e30b0c4 to restore the network on rk3399.

Fixes: dc4a9e30b0c4 ("net: stmmac: dwmac-rk: fix unbalanced pm_runtime_enable warnings")
Suggested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Punit Agrawal <punitagrawal@gmail.com>
Cc: Michael Riesch <michael.riesch@wolfvision.net>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20210929135049.3426058-1-punitagrawal@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c