提交 3ac6e56c 编写于 作者: G Greg Kroah-Hartman

Revert "drivers: core: Detach device from power domain on shutdown"

This reverts commit 0fab972e as it is
reported by users to cause problems.
Reported-by: NDmitry Osipenko <digetx@gmail.com>
Fixes: 0fab972e ("drivers: core: Detach device from power domain on shutdown")
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Furquan Shaikh <furquan@google.com>
Link: https://lore.kernel.org/r/CAJZ5v0jhniqG43F6hCqXdxQiQZRc67GdkdP0BXcRut=P7k7BVQ@mail.gmail.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0fab972e
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <linux/of_device.h> #include <linux/of_device.h>
#include <linux/genhd.h> #include <linux/genhd.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/pm_domain.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/sched/signal.h> #include <linux/sched/signal.h>
...@@ -4288,8 +4287,6 @@ void device_shutdown(void) ...@@ -4288,8 +4287,6 @@ void device_shutdown(void)
dev->driver->shutdown(dev); dev->driver->shutdown(dev);
} }
dev_pm_domain_detach(dev, true);
device_unlock(dev); device_unlock(dev);
if (parent) if (parent)
device_unlock(parent); device_unlock(parent);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册