[BUG] Device unbound in a resumed state
From: Krzysztof Kozlowski
Date: Fri Mar 11 2016 - 02:08:46 EST
Could be related (the same?) with .
I have a driver (hwrng/exynos-rng) which in probe does:
and in remove:
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
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.
 PM regression with commit 5de85b9d57ab PM runtime re-init in v4.5-rc1