Skip to content

Commit

Permalink
Revert "drivers: core: Detach device from power domain on shutdown"
Browse files Browse the repository at this point in the history
This reverts commit 0fab972 as it is
reported by users to cause problems.

Reported-by: Dmitry Osipenko <digetx@gmail.com>
Fixes: 0fab972 ("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.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Jan 12, 2021
1 parent 0fab972 commit 3ac6e56
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <linux/of_device.h>
#include <linux/genhd.h>
#include <linux/mutex.h>
#include <linux/pm_domain.h>
#include <linux/pm_runtime.h>
#include <linux/netdevice.h>
#include <linux/sched/signal.h>
Expand Down Expand Up @@ -4288,8 +4287,6 @@ void device_shutdown(void)
dev->driver->shutdown(dev);
}

dev_pm_domain_detach(dev, true);

device_unlock(dev);
if (parent)
device_unlock(parent);
Expand Down

0 comments on commit 3ac6e56

Please sign in to comment.