Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3026687pxb; Sun, 29 Aug 2021 10:52:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxH6st/HKHTfFf6KCtTcLaEJj3WOI+s8ckqMH6PwX9J+iwZBPqKGcdhjbhU0gLAz3XufMTO X-Received: by 2002:a05:6402:452:: with SMTP id p18mr20053661edw.34.1630259519919; Sun, 29 Aug 2021 10:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630259519; cv=none; d=google.com; s=arc-20160816; b=FxPxxUUqFjRpmEkBMnfxlLKTx1lwE2vZxnXtaaHJ2deVSPP7MA+g9D0/70YkLVABeO KeySiddjGKjNuiLbbZIZeco/KbsK9OvKseIRNeixKMYzHu2yy6EDPcDYNUj2VCCw1L3n PaQmv42+rxLyQt1roIswAbJ3hVuiweKqULxhTKHcYNwnr0cC+UdrnuH1rvCH6tYHXucb QYTaaBNPI4lPSYaY0XRi0eXHok8ceYf24wvVvdhIvSYGF2/yd9Bzv3b0ejOYWPaYWfJQ qrtYqXum6HDsbb4YmNuaWg8kWBPniFKL11FTIWmOMmSNM8a9wKsfODzW3RLT3DYy9nD/ GoYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=Ng8Nc7RPjC5XZnL4EXuDtogqZsofQfD04ok2tzTdyg0=; b=M1Ihsm1RdOH2U+B8n9l9fCg9H7grdWNv3ks5HVELRMnR7FlcCq/yVHfGMmoR6tMp1X SDMgWrPMhFqIIFBCau7JYpk5qidUEmnuaVvhVGWrvyHrI1kgKcrOKsF+e2PZNRFYMQi7 vGetS9WbL2C2U9qjOQeooQlEoD/J4XVl59ZY/knylAp5hBkFBi1wJ6O3D/tnBhe4oG2w OquTcpNmYVqbk+MFIet723IFTvo0Iztp1SfIkmOkXyxHxQGxzQXpls1hm1NDzbxk1mpg zYHEIrqCxuf/Y3gbD/mE6yKSDYulzUCJNV39DawHfYMpQQ+8/StuW0I0P4LcRYFnGJuu FNaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WfLgDYha; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e3si6106966ejs.199.2021.08.29.10.51.30; Sun, 29 Aug 2021 10:51:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WfLgDYha; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230100AbhH2Rt0 (ORCPT + 99 others); Sun, 29 Aug 2021 13:49:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:38874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbhH2RtZ (ORCPT ); Sun, 29 Aug 2021 13:49:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5921360E97; Sun, 29 Aug 2021 17:48:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630259313; bh=Ng8Nc7RPjC5XZnL4EXuDtogqZsofQfD04ok2tzTdyg0=; h=References:In-Reply-To:Reply-To:From:Date:Subject:To:Cc:From; b=WfLgDYhad3SWUz1Q4kjSXblwrfvtrwvQKrBBbqTsJgc9VEDQ7j0W46HWUbQGj6Q+K DZDilVD4HVaFbbPrRc8sjLPWJaCJC4+o6+hqJ5NSmlfeSgwh6w+Lyl0XGSun/MyOYS /kMm/O4VXOV2YzUvKbT/dhKfQ09ka2cwsUosXz3fBa7njXBw8QLnsVNX0+CVascDjS mzuavtotaNgLVb7fG/UEOXwC0XMAyhu8HtoU84+2E+RG7f9L53p2auRsy+l4OtyvGp al8f3KENJLJHQGaLVbQg3LBtb9vQdUIG7d2YiDYqdV/OB4oJVvFSk4n/agQFy6pSKd LBScUxJf9dl/A== Received: by mail-lf1-f42.google.com with SMTP id m28so26330194lfj.6; Sun, 29 Aug 2021 10:48:33 -0700 (PDT) X-Gm-Message-State: AOAM531+JW2guyzl/BpLcsrmyMz1azd4agHBm+iLivdlj3RueZpLlw5g M0wDuuWILenAgQpUh2s1g0HRtyQhUA7TzyWSIgg= X-Received: by 2002:a05:6512:3f89:: with SMTP id x9mr14794257lfa.233.1630259311683; Sun, 29 Aug 2021 10:48:31 -0700 (PDT) MIME-Version: 1.0 References: <20210823143754.14294-1-michael.riesch@wolfvision.net> In-Reply-To: <20210823143754.14294-1-michael.riesch@wolfvision.net> Reply-To: wens@kernel.org From: Chen-Yu Tsai Date: Mon, 30 Aug 2021 01:48:19 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] net: stmmac: dwmac-rk: fix unbalanced pm_runtime_enable warnings To: Michael Riesch Cc: netdev , "moderated list:ARM/STM32 ARCHITECTURE" , "open list:ARM/Rockchip SoC..." , linux-arm-kernel , linux-kernel , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Maxime Coquelin Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Aug 23, 2021 at 10:39 PM Michael Riesch 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 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