Re: [PATCH] net: stmmac: dwmac-rk: fix unbalanced pm_runtime_enable warnings
From: Chen-Yu Tsai
Date: Sun Aug 29 2021 - 13:53:50 EST
Hi,
On Mon, Aug 23, 2021 at 10:39 PM Michael Riesch
<michael.riesch@xxxxxxxxxxxxxx> wrote:
>
> This reverts commit 2c896fb02e7f65299646f295a007bda043e0f382
> "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.
>
> Signed-off-by: Michael Riesch <michael.riesch@xxxxxxxxxxxxxx>
I just found that Ethernet stopped working on my RK3399 devices,
and I bisected it down to this patch.
The symptom I see is no DHCP responses, either because the request
isn't getting sent over the wire, or the response isn't getting
received. The PHY seems to be working correctly.
ChenYu