[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <56E26EE9.8040400@samsung.com>
Date: Fri, 11 Mar 2016 16:08:25 +0900
From: Krzysztof Kozlowski <k.kozlowski@...sung.com>
To: Ulf Hansson <ulf.hansson@...aro.org>,
Kevin Hilman <khilman@...aro.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Len Brown <len.brown@...el.com>, Pavel Machek <pavel@....cz>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: [BUG] Device unbound in a resumed state
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
Powered by blists - more mailing lists