Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2006786pxb; Mon, 23 Aug 2021 09:45:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBTfV9a2WEmYrEjTP6441tIH6OGi2xJdgOjiPXuiywszyaVSNyo3iYhtwV3qHuwhcle9bT X-Received: by 2002:a92:cdac:: with SMTP id g12mr18432304ild.201.1629737126608; Mon, 23 Aug 2021 09:45:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629737126; cv=none; d=google.com; s=arc-20160816; b=RNmdhwGV2/aS7Ieye/CQ6Vamb0KOJ2bnNbGF03NZpZCUpUclK+6tPB2NkBQsuIdV73 bEPx9hZtUppEJit73ZeaaXyaaK2s/N9uS+qjY8jmfgF1HbIdQa7XY6g42WiUsptVIvUc 2vIAfdm3qhr1//7etwcfk8G88NMjrCH/Mt5HwTQYZVaGgrPhKeZq3YwT7VUN/GExPa4c DHWUZZQ+9Ju9aRbWaq4BQ5pNMGXE3Y1naqDHJ4mvbyzOXelMs71/hQK0ZI/kvnp8Zoy0 pzk3ierOrSyL1A37PUOIlySbMgig9MXRbAwjc28Rp9sKmu8uZoH9U/8OGJjDmVCI0dSF XHfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=FYGedtr52WFGd7kU19zDdbt6WnoqGN522YQ2TFFwa58=; b=NwUyHpKZsf4GaGQC22Rfpi7qwWJtvPRzWDe6W7w3/C6LLmo9Y9k7QYk8A2Cw2sAIQy ffNRmJfM7CNsQIHJW3YDlFpQWyDJpWwo5nV6NCL67H2EZNNpMLE5XPKl8XLXM6N4GE8c 4v0J2egEHfnoMG7ETcYxLqele2b9jEoJC9z6n88r1xroj3i04i5aphSjuho7dEwJ3G3n /8JBIaE1pJnC7lUxdy5bouv3SsAzk8DrDMFZNVmR9pK72UA6rhHRy4hTOqjrvd9izd+d +5W4/V6Ux2ADenTl+QqinHg2lBLNL8OtbVIeoPho1yICU2rJhKQBk3ql1ZgznylyP+Xw GqdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QRPsy8S1; 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 s21si14112999jar.42.2021.08.23.09.45.13; Mon, 23 Aug 2021 09:45:26 -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=QRPsy8S1; 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 S229977AbhHWQpK (ORCPT + 99 others); Mon, 23 Aug 2021 12:45:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:39036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbhHWQpJ (ORCPT ); Mon, 23 Aug 2021 12:45:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 55BF6610F8; Mon, 23 Aug 2021 16:44:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629737066; bh=7w5FXWeb8P/JBu4RqLDy7fzGAXbval5K4YO4wkz3Tn8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QRPsy8S1buyVDP9dLd+eDgJJ0x7b+mpjd+QiKp17gSoCfIyr9cTC4G+Px9ZSVsWbl OdMipVIHQKzyX4St+fNM8uMsktO3/osoQjVeJb+ijLUj8UaVHBY/dPo+oZdngbIXh0 ep3Odv0n41HiNoR6MKshMxFAVDF3GuvV55qj3gaFSjUPLv194qHl5K/prEJ2Jauk+C e7gxbFkoiMd3hTXRZB1zMeM+AORbj1pyS+jfibY7MCqLj9NvEk/Y1qiEDIlMLsUvUO 1HifTcI35mpL7oJFxzbg1laOWr4bUQKUdazBHG6sSSPv2vX4rvZJvnGTTJXsBfuyAM O0suswGiISgGQ== Date: Mon, 23 Aug 2021 09:44:25 -0700 From: Jakub Kicinski To: Michael Riesch Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Maxime Coquelin Subject: Re: [PATCH] net: stmmac: dwmac-rk: fix unbalanced pm_runtime_enable warnings Message-ID: <20210823094425.78d7a73e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210823143754.14294-1-michael.riesch@wolfvision.net> References: <20210823143754.14294-1-michael.riesch@wolfvision.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 23 Aug 2021 16:37:54 +0200 Michael Riesch wrote: > 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}. Can we get a Fixes tag? I.e. reference to the earliest commit where the warning can be triggered? > 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.