android_kernel_xiaomi_sm8350/drivers/base/power
Michael Richardson 9c08a938ce [PATCH] device_shutdown can loop if the driver frees itself
This patch changes device_shutdown() to use the newly introduced safe
reverse list traversal.  We experienced loops on system reboot if we had
removed and re-inserted our device from the device list.

We noticed this problem on PPC405. Our PCI IDE device comes and goes a lot.

Our hypothesis was that there was a loop caused by the driver->shutdown
freeing memory.  It is possible that we do something wrong as well, but
being unable to reboot is kind of nasty.

Signed-off-by: Michael Richardson <mcr@marajade.sandelman.ca>
Cc: Patrick Mochel <mochel@digitalimplant.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-01-13 11:26:12 -08:00
..
main.c [PATCH] one less word in struct device 2005-10-28 16:47:39 -07:00
Makefile
power.h [PATCH] USB: fix pm patches with CONFIG_PM off part 2 2005-10-28 16:47:52 -07:00
resume.c
runtime.c [PATCH] pcmcia: merge suspend into device model 2006-01-06 00:02:03 +01:00
shutdown.c [PATCH] device_shutdown can loop if the driver frees itself 2006-01-13 11:26:12 -08:00
suspend.c
sysfs.c [PATCH] fix remaining missing includes 2005-11-07 07:53:41 -08:00