android_kernel_xiaomi_sm8350/drivers/ide
Rafael J. Wysocki 3a2d5b7001 PM: Introduce PM_EVENT_HIBERNATE callback state
During the last step of hibernation in the "platform" mode (with the
help of ACPI) we use the suspend code, including the devices'
->suspend() methods, to prepare the system for entering the ACPI S4
system sleep state.

But at least for some devices the operations performed by the
->suspend() callback in that case must be different from its operations
during regular suspend.

For this reason, introduce the new PM event type PM_EVENT_HIBERNATE and
pass it to the device drivers' ->suspend() methods during the last phase
of hibernation, so that they can distinguish this case and handle it as
appropriate.  Modify the drivers that handle PM_EVENT_SUSPEND in a
special way and need to handle PM_EVENT_HIBERNATE in the same way.

These changes are necessary to fix a hibernation regression related
to the i915 driver (ref. http://lkml.org/lkml/2008/2/22/488).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Tested-by: Jeff Chua <jeff.chua.linux@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-23 10:40:04 -08:00
..
arm bast-ide: build fix 2008-02-11 00:32:14 +01:00
cris ide: remove ide_setup_ports() 2008-02-06 02:57:50 +01:00
h8300
legacy ht6560b: force prefetch for some devices 2008-02-19 01:41:26 +01:00
mips
pci via82cxxx: add new PCI id for cx700 2008-02-19 01:41:26 +01:00
ppc PM: Introduce PM_EVENT_HIBERNATE callback state 2008-02-23 10:40:04 -08:00
ide-acpi.c drivers/ide/ide-acpi.c: fix uninitialized var warning 2008-02-06 02:57:49 +01:00
ide-cd_ioctl.c
ide-cd_verbose.c
ide-cd.c ide-cd: fix missing residual count setting in DMA mode 2008-02-19 01:41:26 +01:00
ide-cd.h
ide-disk.c ide/libata: ST310211A has buggy HPA too 2008-02-19 01:41:25 +01:00
ide-dma.c ide: introduce CONFIG_BLK_DEV_IDEDMA_SFF option 2008-02-11 00:32:14 +01:00
ide-floppy.c ide: add ide_read_error() inline helper 2008-02-06 02:57:51 +01:00
ide-generic.c falconide: locking bugfix 2008-02-19 01:41:25 +01:00
ide-io.c ide-disk: fix flush requests (take 2) 2008-02-11 00:32:14 +01:00
ide-iops.c ide: insert BUG_ON() into __ide_set_handler() (take 2) 2008-02-11 00:32:12 +01:00
ide-lib.c ide: remove stale comment from ide-lib.c 2008-02-11 00:32:15 +01:00
ide-pnp.c
ide-probe.c ide: fix comment in init_irq() 2008-02-11 00:32:15 +01:00
ide-proc.c Palmchip BK3710 IDE driver 2008-02-06 02:57:48 +01:00
ide-scan-pci.c
ide-tape.c ide-tape: remove never executed code 2008-02-11 00:32:14 +01:00
ide-taskfile.c ide: add ide_read_error() inline helper 2008-02-06 02:57:51 +01:00
ide-timing.h
ide.c ide: mark "ide=reverse" option as obsolete 2008-02-21 15:27:07 -08:00
Kconfig ide: introduce CONFIG_BLK_DEV_IDEDMA_SFF option 2008-02-11 00:32:14 +01:00
Makefile
setup-pci.c