Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752511AbbKKClt (ORCPT ); Tue, 10 Nov 2015 21:41:49 -0500 Received: from relmlor4.renesas.com ([210.160.252.174]:7875 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752440AbbKKClp (ORCPT ); Tue, 10 Nov 2015 21:41:45 -0500 X-IronPort-AV: E=Sophos;i="5.20,273,1444662000"; d="scan'";a="199500164" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <876119fejk.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Geert Uytterhoeven CC: Ulf Hansson , Zhang Rui , Eduardo Valentin , Linux-SH , Linux-Kernel , Linux PM list , Cao Minh Hiep , =?ISO-2022-JP?B?RHVuZxskQiEnP00lPRsoQg==?= Subject: Re: [PATCH 2/2] thermal: rcar_thermal: use pm_runtime_put_sync() In-Reply-To: References: <87h9kulkfg.wl%kuninori.morimoto.gx@renesas.com> <87fv0elibh.wl%kuninori.morimoto.gx@renesas.com> <87d1vili9c.wl%kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="US-ASCII" Date: Wed, 11 Nov 2015 02:41:38 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0022.jpnprd01.prod.outlook.com (25.161.131.160) To HKXPR06MB1016.apcprd06.prod.outlook.com (25.161.181.156) X-Microsoft-Exchange-Diagnostics: 1;HKXPR06MB1016;2:s6AQ3rJIYUnRKjkBpsmsi1P+uDfLsuLvTuaomGHVAKvmorE4RgSDW69t9thjGLy0oip+HuJA+fVRLJVFRqxCtMMddng5Ycgzs8qo3tGs334YTyi4+ZNmHZDSIhwxv9nbCqckgwD0fQZUQmelKYmVHsbrM3KCAikZEu+Xkb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vmWAXV+aR4O2J+ZCG5S/4Eh4dG+SnjaTwktHiZ9s7Zgk8ikFcq00Bcwa5KOYW5OkxvZKLw/cG346g71OFlH6iINeD8Xn7W/mHz41eZIxUARKdoZsiGz3DuneX2ACO/vhQdvdNg7jXU4rC185ukc//moUY5A8tWO5NFE4ZZ14Wm9EknbhoLMoftqP0sQJWrEeGPPJm1Gbv07bu9V+E4NYVezFnX7AKDVtxfxpIj7YA664PsqknBexlNuM7Otxi4/Li3aX4RmebAGEDiJlBg61+4J0mwBh7y/W8n9Aq/KE+snOViFly0q9QG+ogwQSSj/gXtxjD5rWanXEdQcPCwpoiGn+qpRftnAJ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(3002001)(10201501046);SRVR:HKXPR06MB1016;BCL:0;PCL:0;RULEID:;SRVR:HKXPR06MB1016; X-Forefront-PRVS: 0757EEBDCA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(199003)(189002)(87976001)(77096005)(33646002)(42186005)(86362001)(46406003)(101416001)(575784001)(5007970100001)(93886004)(122386002)(83506001)(50986999)(40100003)(92566002)(50466002)(54356999)(81156007)(4001350100001)(5008740100001)(23726002)(76176999)(189998001)(5001960100002)(97736004)(5004730100002)(47776003)(53416004)(110136002)(66066001)(106356001)(5001920100001)(69596002)(105586002)(36756003)(2950100001);DIR:OUT;SFP:1102;SCL:1;SRVR:HKXPR06MB1016;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;HKXPR06MB1016;23:pue/tXeBHxHNz68anKj/lQD4RDLpw15nktHm/8f1M?= =?us-ascii?Q?1j8YLI1c9Y8Pt8csh+Yezi7B5pzSLyUVszPNqzIdMQsXm71fBS2y4pGCXP99?= =?us-ascii?Q?9uKgL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kb/GWAFmUOxFXLEn1tZS?= =?us-ascii?Q?CWIjTs3v1siKCsP30QGxAkvKRBABARfR1n0x+Slb6gnQmA1BQIzAWO6JwieI?= =?us-ascii?Q?ECnFMvEW40bsOXzQroOBshm/xRb?= X-Microsoft-Exchange-Diagnostics: 1;HKXPR06MB1016;5:fKI/95VdVuRnCfY/kcnS8CTwRKptGvKtwWuBppCHJGNtRi5o5jY4clO25u25ogicMx7r6BChAtfDNmtt0jcNJST4EXCWvXkgqoFnPLL7QuJ/zQidbh4XR6zH+OIVOr507DclrYROctFIUlf9BvCsNA==;24:uvfRHcim94jnvP41AW6S0vlr+XsrIWFVItjRH8w3cnnfzPgjMfxneAkUYQ+/qDr2ovp9wZ87Ls+Q7XvIX1h4YTEBswGIYA+/YIkZTg3iHI8=;20:4PBK5MEjP35lS4MIwG2CTukzyvpi79wdf1FOg3H+tdL3ppL2S3b+oSpulCnow6+VgdxKyxXoE4KNoXGEA1E5XbwPalQZLYD62YnjEAl6SyTTvwuYYbyinU/2aHhgjx+BpoFw9b0wiqnQQF8H4WNkbvyPsMqI7RvY1Zi17udPBUM= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2015 02:41:38.4382 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB1016 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 900 Lines: 28 Hi Geert > > - pm_runtime_put(dev); > > + pm_runtime_put_sync(dev); > > pm_runtime_disable(dev); > > > > return 0; > > While I can confirm this fixes the issue, I think this is a bug in the PM > core, and thus your patch is merely a workaround. > > Morimoto-san: I assume this is a recent regression. Have you tried to bisect? I thought that this is driver side issue, but I noticed that it was working before. I tried bisect, and found that this patch breaks bind/unbind cbc41d0a761bffb3166a413a3c77100a737c0cd7 ("drivers: sh: Disable PM runtime for multi-platform ARM with genpd") Best regards --- Kuninori Morimoto -- 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/