Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934186AbcCKHIm (ORCPT ); Fri, 11 Mar 2016 02:08:42 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:63969 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932075AbcCKHIc (ORCPT ); Fri, 11 Mar 2016 02:08:32 -0500 X-AuditID: cbfec7f5-f79b16d000005389-bd-56e26eed59cd From: Krzysztof Kozlowski Subject: [BUG] Device unbound in a resumed state X-Enigmail-Draft-Status: N1110 To: Ulf Hansson , Kevin Hilman , "Rafael J. Wysocki" , Len Brown , Pavel Machek , "linux-pm@vger.kernel.org" , linux-kernel Message-id: <56E26EE9.8040400@samsung.com> Date: Fri, 11 Mar 2016 16:08:25 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFLMWRmVeSWpSXmKPExsVy+t/xa7pv8x6FGRyepm3x+oWhxdfDKxgt Zk3Zy2RxedccNovPvUcYLe6eOspmceb0JVaL42vDHTg8Fu95yeRx59oeNo8tV9tZPPq2rGL0 WLH6O7vH501yAWxRXDYpqTmZZalF+nYJXBknjz5nL3jPVnHjWg9zA+Nb1i5GTg4JAROJ808+ M0PYYhIX7q1n62Lk4hASWMoo8f/QBxaQhJDAU0aJNevyQGw2AWOJzcuXsIHYwgIGErdPHoZq lpPo7Z7EAtIsIjCPSeLYoR2MIAleAS2J3SefgQ1iEVCV2HL1BVizqECExOHOLnaIGkGJH5Pv AdVwcDALqEtMmZILEmYWkJfYvOYt8wRGvllIqmYhVM1CUrWAkXkVo2hqaXJBcVJ6rpFecWJu cWleul5yfu4mRkgIf93BuPSY1SFGAQ5GJR7eD9cehgmxJpYVV+YeYpTgYFYS4a2OexQmxJuS WFmVWpQfX1Sak1p8iFGag0VJnHfmrvchQgLpiSWp2ampBalFMFkmDk6pBsbJnXe2rGPLvqT7 c7FUvGqAsCmrNUd8x4FIoY83uFxkRL4w2ThVzyiRM/8X6LOeoenyK98UxeWpO4R5bhpoO/L8 jPc6zfqnIaP2gc7u+T3lSyc/fuosVmAz7U7R5dfzND5vtXQ+Huix+cE57njLHU47W++Ui8dm CR7tmfJ1zTTBBWuXqt9S7VViKc5INNRiLipOBAAj6pm4XQIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 850 Lines: 29 Hi, Could be related (the same?) with [0]. I have a driver (hwrng/exynos-rng) which in probe does: pm_runtime_set_autosuspend_delay(&pdev->dev, EXYNOS_AUTOSUSPEND_DELAY); pm_runtime_use_autosuspend(&pdev->dev); pm_runtime_enable(&pdev->dev); and in remove: pm_runtime_disable(&pdev->dev) Just before unbinding in __device_release_driver() the device is resumed but unfortunately not suspended later. I mean the __device_release_driver()->pm_runtime_put_sync() does not trigger runtime suspend. This leads to leaving the device in active state (e.g. clocks enabled). It does not happen after removal of autosuspend. Also runtime suspend happens after very fast unbind-bind. Best regards, Krzysztof [0] PM regression with commit 5de85b9d57ab PM runtime re-init in v4.5-rc1 http://comments.gmane.org/gmane.linux.power-management.general/70690