Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753438Ab3DQXZ4 (ORCPT ); Wed, 17 Apr 2013 19:25:56 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:62463 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751453Ab3DQXZy (ORCPT ); Wed, 17 Apr 2013 19:25:54 -0400 X-AuditID: cbfee68d-b7f786d000005188-5a-516f2f81f019 From: Jonghwan Choi To: "'Jonghwan Choi'" , linux-kernel@vger.kernel.org, cpgs@samsung.com Cc: stable@vger.kernel.org, "'Li Fei'" , "'Mark Brown'" , "'Liu Chuansheng'" References: In-reply-to: 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 Message-id: <003601ce3bc2$e72fd950$b58f8bf0$%choi@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4vhL6OHdYi6A9aR4m9yzeDEXJPogAflJswAu8tBWAAAHkyUAAAQsZQ Content-language: ko x-cr-hashedpuzzle: DGmy JL/I JsKj MTJ5 Qk7m We9M YjDg 1BhE 5zha 9lRo /8Pq AAHwAA== ADRwVQ== AEmiow== AExnWQ== AGh9OQ==;7;YgByAG8AbwBuAGkAZQBAAG8AcABlAG4AcwBvAHUAcgBjAGUALgB3AG8AbABmAHMAbwBuAG0AaQBjAHIAbwAuAGMAbwBtADsAYwBoAHUAYQBuAHMAaABlAG4AZwAuAGwAaQB1AEAAaQBuAHQAZQBsAC4AYwBvAG0AOwBjAHAAZwBzAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtADsAZgBlAGkALgBsAGkAQABpAG4AdABlAGwALgBjAG8AbQA7AGoAaABiAGkAcgBkAC4AYwBoAG8AaQBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtA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K99727R3dGxbpPpJgrywoPhc7 cbl7gj1/XnVplJWb/8eMSKPtQod8LnBHsb4rnexmfjfej9+Sr2p7r/uNf/aNVyb9LzIsWbU+ 98mPOXf3M82t8ni26rXQ2WmcrOIz6jxaD/ROq1Z3skj4KdXy+/QXxcP7D75gbu1atmIzgxJL cUaioRZzUXEiADXHrHlhAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1377 Lines: 43 3.8-stable review patch. If anyone has any objections, please let me know. ------------------ From: "Li Fei " 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 Signed-off-by: Li Fei Signed-off-by: Mark Brown Signed-off-by: Jonghwan Choi --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/