public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonghwan Choi <jhbird.choi@samsung.com>
To: "'Jonghwan Choi'" <jhbird.choi@samsung.com>,
	linux-kernel@vger.kernel.org, cpgs@samsung.com
Cc: stable@vger.kernel.org, "'Li Fei'" <fei.li@intel.com>,
	"'Mark Brown'" <broonie@opensource.wolfsonmicro.com>,
	"'Liu Chuansheng'" <chuansheng.liu@intel.com>
Subject: [PATCH 3.8-stable] regmap: irq: call pm_runtime_put in pm_runtime_get_sync
Date: Thu, 18 Apr 2013 08:25:52 +0900	[thread overview]
Message-ID: <003601ce3bc2$e72fd950$b58f8bf0$%choi@samsung.com> (raw)
In-Reply-To: 

3.8-stable review patch.  If anyone has any objections, please let me know.

------------------

From: "Li Fei <fei.li@intel.com>"

commit 283189d3be56aa6db6f192bb255df68493cd79ac upstream.

Even in failed case of pm_runtime_get_sync, the usage_count
is incremented. In order to keep the usage_count with correct
value and runtime power management to behave correctly, call
pm_runtime_put(_sync) in such case.

Signed-off-by Liu Chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Li Fei <fei.li@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
---
 drivers/base/regmap/regmap-irq.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/base/regmap/regmap-irq.c
b/drivers/base/regmap/regmap-irq.c
index 5972ad9..d623eea 100644
--- a/drivers/base/regmap/regmap-irq.c
+++ b/drivers/base/regmap/regmap-irq.c
@@ -167,6 +167,7 @@ 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);
 			return IRQ_NONE;
 		}
 	}
-- 
1.7.9.5


                 reply	other threads:[~2013-04-17 23:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='003601ce3bc2$e72fd950$b58f8bf0$%choi@samsung.com' \
    --to=jhbird.choi@samsung.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=chuansheng.liu@intel.com \
    --cc=cpgs@samsung.com \
    --cc=fei.li@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox