Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3770918ybl; Mon, 12 Aug 2019 06:11:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAz8e2Vd5Fn/8MxkWLaGGeDY9u16pVhyt3JSaMcsyJDP3IT8NznlevryGGApS6MzN9BcTj X-Received: by 2002:a65:528d:: with SMTP id y13mr30988310pgp.120.1565615474825; Mon, 12 Aug 2019 06:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565615474; cv=none; d=google.com; s=arc-20160816; b=1IkyhQWThYSYrxiKp+0bAFt8Ir9DBH085cd10V3wkXRncPt/FrMgy6NnnY6Eq1YVjl QFB9NMAxvpoQCHQuai2Xsn+sGtYYQVoB1R+sJShVzZyHZjgPDBXnEYcv1uujsxUsX5Pg +hx76K23BqZAX7/25BpbAd10uELLwjZgHi77t7+JN1GKkPimcyV9kW7A/hsq6wJZ63BL UBogrWCrpW95qVPAZ0dfwKgnMspQAkxAGSKEeWpHZm5HNH+Zso9Hgamg1xs36KeVmUxZ 5Okt94MjtPRKvIvFe+plz+x969xpKlNfVzDV6b/KtaxI2hClwIat3rC8rL61A8GTQBJZ R5Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=gd9DyYbnFyPsG5Oa/SoWq+i9aBWOzldgmInHOmAKHtg=; b=YpR5QLfq5AeOw/96RhGJk8MFon9+mWQyEA4Nxf4MTak4dCYIkV+SlIlOzIQOlhMLiI OOBxEjICV9Yy5llrynN9KfPCK1Vdnt1S+U5IE7pfKRia6NVqVPnGThymq/ANM7hT2x52 Z6meTrTK6/DjFczz1rI7ngCBmOBKSC/YK65G7vx7hus0jH/bGaf+uiJM3CFTEcBtezSs PLMM3TAxpjNOWitWH2tJI8L/qCIrb7kaG98cBjSf3jqZhnA+Z1VP1Hi2BqMUU0xJSVh+ oCRSFYOM5ww7jjF3zAM0P5bWV/luoatMT0PhZkdwNJc5mw+tcxS7lS16LeSfxQna9+i0 CMcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=b2SxXVLm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si28420438pgs.326.2019.08.12.06.10.59; Mon, 12 Aug 2019 06:11:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=b2SxXVLm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728871AbfHLNKQ (ORCPT + 99 others); Mon, 12 Aug 2019 09:10:16 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:40394 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728820AbfHLNKJ (ORCPT ); Mon, 12 Aug 2019 09:10:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=gd9DyYbnFyPsG5Oa/SoWq+i9aBWOzldgmInHOmAKHtg=; b=b2SxXVLmnNQv eud1RiJ9tB7mHyjx/QJQGVUsF6U7TDFo1DmvcEz1R999e2pzQYoJkb/ORu9hSFbxMcPKR/8taE5Io V6gMqBUD/IRZK6g/8avKMEKU1WwPBQmOAilp2FkKQFk6TQmrYRkfDskrVPLzib7iEPDXVI0UkZkMi Y4F88=; Received: from ypsilon.sirena.org.uk ([2001:470:1f1d:6b5::7]) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hxA5M-0001PY-QV; Mon, 12 Aug 2019 13:10:04 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 02C3B2740CB7; Mon, 12 Aug 2019 14:10:03 +0100 (BST) From: Mark Brown To: Charles Keepax Cc: broonie@kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Mark Brown , rafael@kernel.org Subject: Applied "regmap-irq: Correct error paths in regmap_irq_thread for pm_runtime" to the regmap tree In-Reply-To: <20190812092409.21593-1-ckeepax@opensource.cirrus.com> X-Patchwork-Hint: ignore Message-Id: <20190812131004.02C3B2740CB7@ypsilon.sirena.org.uk> Date: Mon, 12 Aug 2019 14:10:03 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch regmap-irq: Correct error paths in regmap_irq_thread for pm_runtime has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From fba5b1e9ab527bd46bc529370d52a7b2b552dce1 Mon Sep 17 00:00:00 2001 From: Charles Keepax Date: Mon, 12 Aug 2019 10:24:09 +0100 Subject: [PATCH] regmap-irq: Correct error paths in regmap_irq_thread for pm_runtime Some error paths in regmap_irq_thread put the pm_runtime others do not, there is no reason to leave the pm_runtime enabled in some cases so update those paths to also put the pm_runtime. Signed-off-by: Charles Keepax Link: https://lore.kernel.org/r/20190812092409.21593-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown --- drivers/base/regmap/regmap-irq.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/base/regmap/regmap-irq.c b/drivers/base/regmap/regmap-irq.c index c9dc70ceca5f..3d64c9331a82 100644 --- a/drivers/base/regmap/regmap-irq.c +++ b/drivers/base/regmap/regmap-irq.c @@ -370,7 +370,6 @@ static irqreturn_t regmap_irq_thread(int irq, void *d) if (ret < 0) { dev_err(map->dev, "IRQ thread failed to resume: %d\n", ret); - pm_runtime_put(map->dev); goto exit; } } @@ -425,8 +424,6 @@ static irqreturn_t regmap_irq_thread(int irq, void *d) dev_err(map->dev, "Failed to read IRQ status %d\n", ret); - if (chip->runtime_pm) - pm_runtime_put(map->dev); goto exit; } } @@ -478,8 +475,6 @@ static irqreturn_t regmap_irq_thread(int irq, void *d) dev_err(map->dev, "Failed to read IRQ status: %d\n", ret); - if (chip->runtime_pm) - pm_runtime_put(map->dev); goto exit; } } @@ -513,10 +508,10 @@ static irqreturn_t regmap_irq_thread(int irq, void *d) } } +exit: if (chip->runtime_pm) pm_runtime_put(map->dev); -exit: if (chip->handle_post_irq) chip->handle_post_irq(chip->irq_drv_data); -- 2.20.1