Skip to contentSkip to conversation

regmap: irq: call pm_runtime_put in pm_runtime_get_sync

PATCH New Jonghwan Choi 1 participant 1 message Apr 17, 2013 Stable branch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regmap: irq: call pm_runtime_put in pm_runtime_get_sync

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

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

From: "Li Fei <[email protected]>"

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 <[email protected]>

---
 drivers/base/regmap/regmap-irq.c |    1 +
 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/drivers/base/regmap/regmap-irq.c
index 5972ad9..d623eea 100644

drivers/base/regmap/regmap-irq.c +0 -0
@@ -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;
}
}

Signature · 1 line
1.7.9.5