Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3860986pxb; Mon, 30 Aug 2021 12:23:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQ5AUWNiQg2lz9nhej8CmllntpBGMNt9PrFy75oc0yEjQmNgenP79FZtNMoaz5N+wtmFE1 X-Received: by 2002:a05:6e02:8f2:: with SMTP id n18mr17821065ilt.256.1630351406164; Mon, 30 Aug 2021 12:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630351406; cv=none; d=google.com; s=arc-20160816; b=gPUQOEx8+L+BUNfO2zg2E/FPaDv4JbEgWVMLbrOE6QODt7u8/N7Qbgw69R06IBVB1n 4uneCWqD8QLkGYEBbbeXNBU3ffDgwWLKNt9bDVzOMIXs5zvIknpl70faD6fSfWCt7dkM ffQIqHb/6HOBbVQI7LyW9F+g7/czKdurAcr5n+CqcNPFohNzgEb014P2rgyhnGT7HJDG yIUVC63NBzY2Lm6gth6IMPSDrCuqvgXS1PXJr5STkjY19zXaN5a4tpRO8/LS3pxvA5fM 7iJJ96onSfPhTKTXBMw3DhwQDRN8+hlfNjBq5Z3xudoiPC3QHEnVSsiDIY5WkhjH8zGb 5lzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/f6HsPPv0ukJoVXmB9NT5Go00tfZDfofbRQcdn/W0zc=; b=Dt4rmNYCeX+9eBmW+ZBAZU161lGEdYo5zzbe6WeRsztwO4LZuJEgSZtus5czybCYh8 zdHmV6Q+xyZHAyEgwmnZKFS69gipfGwMLl7eTgZ/DG5GEJe7tC+/a1gyWZH0DzkbNFuw YGgkP4CWaZ55nuem1WSK9sr1Z7/YVPEJUNw+bl/McgIIpN2f3XVvS04fmdQipSBo2fpE vesvjAgFTqRktPZGkAe/h1EXDKwubBM/CG/o3cJ6ouLXGeG7micHo1sDM7Pe8X7PAlVt AxMSjuxy7L0eJSQOkL/6cEH4pR/ny+NzEYJdWvz0kbhkVq4ozroQdqZspez4l2Y/P3wW XpVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T19AiTfT; 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 x5si16032663ila.106.2021.08.30.12.23.13; Mon, 30 Aug 2021 12:23: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=T19AiTfT; 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 S233396AbhH3TXZ (ORCPT + 99 others); Mon, 30 Aug 2021 15:23:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:36242 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230471AbhH3TXY (ORCPT ); Mon, 30 Aug 2021 15:23:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A2D0A60ED6; Mon, 30 Aug 2021 19:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630351350; bh=bD/PRX2r6uMy0nvYwzbiesOU91GqKICjrpxoivduALw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T19AiTfTnKyfwpgvpfv9IKG7CwFyVDnmV/mPUC0e6TOvWEVKVJ2wDB87Y1OSsUyfp KC0MT9n/MLMFT5iuHKDdyH/VntBfk1Jg5XJPrY0Jqz9VxRx2/HKQr7OmSRlCfjDqu0 EmDjt9STRLwjYp4e9OssvkLkc5066zWAv58kfEt5NbMFmDshc7TJQjCBRHy0rOYc/t VgbS7EXNoOCRPvoJE8BAXvc2vkcdFwDkMDeQjovoP2al0ihfkyj48q6/OM78wjy8km SDqeV1LuqJ57ECSpg9ZCWsGehI/lfAYSC/s7DY5rIax/0tgbyi0Z2jHbAZm+jpfKzt cdwLBElFdT3Hw== Date: Mon, 30 Aug 2021 15:22:29 -0400 From: Sasha Levin To: Michael Riesch Cc: wens@kernel.org, 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 Subject: Re: [PATCH] net: stmmac: dwmac-rk: fix unbalanced pm_runtime_enable warnings Message-ID: References: <20210823143754.14294-1-michael.riesch@wolfvision.net> <568a0825-ed65-58d7-9c9c-cecb481cf9d9@wolfvision.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <568a0825-ed65-58d7-9c9c-cecb481cf9d9@wolfvision.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 30, 2021 at 09:57:51AM +0200, Michael Riesch wrote: >Hi ChenYu, > >On 8/29/21 7:48 PM, Chen-Yu Tsai wrote: >> 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. > >Oh dear. First patch in a kernel release for a while and I already break >things. > >Cc: Sasha as this patch has just been applied to 5.13-stable. I'll drop it for now, thanks for letting me know! -- Thanks, Sasha