Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DC27C433F5 for ; Wed, 15 Dec 2021 10:21:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241619AbhLOKVT convert rfc822-to-8bit (ORCPT ); Wed, 15 Dec 2021 05:21:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233789AbhLOKVS (ORCPT ); Wed, 15 Dec 2021 05:21:18 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29C14C061574 for ; Wed, 15 Dec 2021 02:21:18 -0800 (PST) Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxRPQ-00080T-7Q; Wed, 15 Dec 2021 11:21:16 +0100 Received: from pza by lupine with local (Exim 4.94.2) (envelope-from ) id 1mxRPP-000Ef6-L5; Wed, 15 Dec 2021 11:21:15 +0100 Message-ID: <0aaf9792fad706519da3c0177151dc2316882706.camel@pengutronix.de> Subject: Re: [PATCH resend v3] reset: renesas: Fix Runtime PM usage From: Philipp Zabel To: Biju Das , Heiner Kallweit Cc: Linux Kernel Mailing List Date: Wed, 15 Dec 2021 11:21:15 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-12-15 at 10:18 +0000, Biju Das wrote: > Hi Heiner, > > Thanks for the patch. > > > Subject: [PATCH resend v3] reset: renesas: Fix Runtime PM usage > > > > If pm_runtime_resume_and_get() fails then it returns w/o the RPM usage > > counter being incremented. In this case call pm_runtime_put() in > > remove() will result in a usage counter imbalance. Therefore check the > > return code of pm_runtime_resume_and_get() and bail out in case of error. > > > > Fixes: bee08559701f ("reset: renesas: Add RZ/G2L usbphy control driver") > > Signed-off-by: Heiner Kallweit > > Reviewed-by: Biju Das Thank you both, applied to reset/fixes. regards Philipp