From: "Strashko, Grygorii" <grygorii.strashko@xxxxxx>
[ Upstream commit 013c074f8642d8e815ad670601f8e27155a74b57 ]
It is unsafe  if probing of devices will happen during suspend or
hibernation and system behavior will be unpredictable in this case.
So, let's prohibit device's probing in dpm_prepare() and defer their
probing instead. The normal behavior will be restored in
This patch introduces new DD core APIs:
It will disable probing of devices and defer their probes instead.
It will restore normal behavior and trigger re-probing of deferred
Signed-off-by: Grygorii Strashko <grygorii.strashko@xxxxxx>
Acked-by: Pavel Machek <pavel@xxxxxx>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
Signed-off-by: Chunyan Zhang <zhang.chunyan@xxxxxxxxxx>