linux/drivers/ide
David Brownell 8b4b8a24e4 fix broken/dubious driver suspend() methods
Small driver suspend() fixes in preparation for the PRETHAW events:

 - Only compare message events for equality against PM_EVENT_* codes;
   not against integers, or using greater/less-than comparisons.
   (PM_EVENT_* should really become a __bitwise thing.)

 - Explicitly test for SUSPEND events (rather than not-something-else)
   before suspending devices.

 - Removes more of the confusion between a pm_message_t (wraps event code)
   and a "state" ... suspend() originally took a target system state.

These updates are correct and appropriate even without new PM_EVENT codes.

benh: "I think in the Mesh case, we should handle the freeze case as well or
we might get wild DMA."

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Greg KH <greg@kroah.com>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-09-25 21:08:37 -07:00
..
arm Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cris Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
h8300 Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
legacy Revert "[PATCH] pcmcia: Make ide_cs work with the memory space of CF-Cards if IO space is not available" 2006-07-12 21:04:16 -07:00
mips
pci [PATCH] alim15x3.c: M5229 (rev c8) support for DMA cd-writer 2006-09-13 07:32:14 -07:00
ppc fix broken/dubious driver suspend() methods 2006-09-25 21:08:37 -07:00
ide-cd.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ide-cd.h
ide-disk.c [PATCH] ide: option to disable cache flushes for buggy drives 2006-07-28 08:54:59 +02:00
ide-dma.c [PATCH] ide: if the id fields looks screwy, disable DMA 2006-07-28 08:58:26 +02:00
ide-floppy.c [PATCH] lockdep: annotate enable_in_hardirq() 2006-07-03 15:27:09 -07:00
ide-generic.c
ide-io.c [PATCH] lockdep: annotate on-stack completions 2006-07-03 15:27:09 -07:00
ide-iops.c [PATCH] IDE: Touch NMI watchdog during resume from STR 2006-07-31 13:28:39 -07:00
ide-lib.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ide-pnp.c
ide-probe.c [PATCH] irq-flags: ide: Use the new IRQF_ constants 2006-07-02 13:58:49 -07:00
ide-proc.c [PATCH] optical /proc/ide/*/media 2006-09-08 10:22:50 -07:00
ide-tape.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ide-taskfile.c [PATCH] lockdep: annotate enable_in_hardirq() 2006-07-03 15:27:09 -07:00
ide-timing.h
ide.c [PATCH] ide: option to disable cache flushes for buggy drives 2006-07-28 08:54:59 +02:00
Kconfig Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2006-07-31 13:39:52 -07:00
Makefile
setup-pci.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00