From patchwork Tue Nov 10 02:12:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7587651 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E9DC3C05CA for ; Tue, 10 Nov 2015 02:12:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2C19B20617 for ; Tue, 10 Nov 2015 02:12:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4AD5120646 for ; Tue, 10 Nov 2015 02:12:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751537AbbKJCMt (ORCPT ); Mon, 9 Nov 2015 21:12:49 -0500 Received: from relmlor4.renesas.com ([210.160.252.174]:29637 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751066AbbKJCMs (ORCPT ); Mon, 9 Nov 2015 21:12:48 -0500 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie3.idc.renesas.com with ESMTP; 10 Nov 2015 11:12:46 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id C00EA4973B; Tue, 10 Nov 2015 11:12:46 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id BE47B2806E; Tue, 10 Nov 2015 11:12:46 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id B6AD12806D; Tue, 10 Nov 2015 11:12:46 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id MAH14901; Tue, 10 Nov 2015 11:12:46 +0900 X-IronPort-AV: E=Sophos;i="5.20,268,1444662000"; d="scan'";a="199423215" Received: from mail-hk2apc01lp0209.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.209]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 10 Nov 2015 11:12:46 +0900 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by HKXPR06MB1014.apcprd06.prod.outlook.com (10.161.178.156) with Microsoft SMTP Server (TLS) id 15.1.318.15; Tue, 10 Nov 2015 02:12:34 +0000 Message-ID: <87d1vili9c.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 2/2] thermal: rcar_thermal: use pm_runtime_put_sync() User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Zhang Rui , Eduardo Valentin CC: Linux-SH , Linux-Kernel , , , In-Reply-To: <87fv0elibh.wl%kuninori.morimoto.gx@renesas.com> References: <87h9kulkfg.wl%kuninori.morimoto.gx@renesas.com> <87fv0elibh.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Tue, 10 Nov 2015 02:12:34 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0011.jpnprd01.prod.outlook.com (25.161.131.149) To HKXPR06MB1014.apcprd06.prod.outlook.com (25.161.178.156) X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1014; 2:prSMgxPp+48agkDoZShFGuR2PyflFmTLjYQqa6rkMVafnJ0fl7ZvpRKzsHcHGSDlG3PchhjBzk+IlzYYwwv/eGm/3/yWRAwL4WXFQZNpBCXAihoi23xz78PdFC0PZJmGrmFjHcQPMzNmTfIF0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j3j89mlHv8CMTv/EnCyjyWsQXKwbfBSi2bfjwVmRulWOD/ZuZ+mSLLBRtPg5Lv1ZeDf/GNChrEQUau1SXkp8mCLiDeKX9UuKzu7pbS538X5jmnt94vjdDjanyksS2kbOVR5kJu7TUBAk9KQYPT+ny/MFX1pKJMiOUqrON9esGeuVp4YX61ij6c85FNYcuGBFzivlGe/eKB2/cPPfwLwz0TbuZkkEIujkfUBKZZfz2OkIBqGliuEDtV+A5DnzfNlTqqdwwt2UXM5sVMIQhjLimIbyLbaxl+PK76MQTqAasmes9+FdwtjwSqwbIL3IhoQzQvUAzDaZqiq2Aut08kG5v3yIlmxIHgKKVad88NGoLRpNsobxzEabnPrV X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85106069007906); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(10201501046)(3002001); SRVR:HKXPR06MB1014; BCL:0; PCL:0; RULEID:; SRVR:HKXPR06MB1014; X-Forefront-PRVS: 07562C22DA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(40100003)(83506001)(5001770100001)(5001960100002)(87976001)(5004730100002)(50466002)(47776003)(5008740100001)(66066001)(5007970100001)(92566002)(69596002)(122386002)(229853001)(81156007)(19580405001)(33646002)(97736004)(86362001)(23726002)(19580395003)(101416001)(36756003)(106356001)(105586002)(4001350100001)(2950100001)(50986999)(189998001)(76176999)(42186005)(54356999)(46406003)(53416004)(77096005); DIR:OUT; SFP:1102; SCL:1; SRVR:HKXPR06MB1014; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HKXPR06MB1014; 23:NFBzFGXffZgIzYtlsUCCtpFcFDV8twedpG4EHq740?= =?us-ascii?Q?GEPPLT9MTSuW+cWcgAamuTQMJiZpSEX7Pqx0XXDuDOabtE3IC3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Fd2h396tLC4UUilndAaNLg9IGNY/TrusgmyloCP+bze?= =?us-ascii?Q?7Gvwz4MBmeCyjiO1hOJR1kW1eSPxQfAJxIEANX6OdXO9LF6h1H/uLk1/UQjb?= =?us-ascii?Q?Rg0xz4rljdJ8mEa2hL9rh4aAgQz?= X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1014; 5:cj5svWIsQw+Dk/kl5WNTjeFl8d0wawUpd1BmNGfS2bfzZOASBlv3Jeik4XyiNIlmI8hnuu2Bl0bwyuWADom+7I6/K+Cqi+WMikfcq0WhTmtdfaZxD4zSZ3jqbPPJ6V5iK0lWnB/0ZxulJqDbp+MHow==; 24:aCeZLQLNAnEadqVgYKr5U37SuWX+59vxwlSM6N8P2xIuQURM8nq3WVJLarVdYQFwAKy1QyjBF8SqvgkmM/AY3qT5fya2xrRnJFvM2qmhYoU=; 20:WziuuRVQG/fPkhm0dEcDKTtQb1vtVWDaSzz1jrDEy/i6DXzR5H29O6ufhEDjwYgOmOdHeKFBAprDyBHF1Y/xDdIt//4zbhBjL6nllgJJ/x+i7C5Hl//lSDOgvLxPHTBlh6VsJvJWWs7voIIGVmhJjOyQvKiSL9j8m4VA3Lq2RUo= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2015 02:12:34.6092 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB1014 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto It is using pm_runtime_get_sync() on probe(). Let's use pm_runtime_put_sync() instead of pm_runtime_put(). Otherwise thermal sensor doesn't work after unbind/re-bind Signed-off-by: Kuninori Morimoto --- drivers/thermal/rcar_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 13d01ed..f7cf2d7 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c @@ -373,7 +373,7 @@ static int rcar_thermal_remove(struct platform_device *pdev) thermal_zone_device_unregister(priv->zone); } - pm_runtime_put(dev); + pm_runtime_put_sync(dev); pm_runtime_disable(dev); return 0;