kernel_optimize_test/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 [PATCH] handle errors returned by platform_get_irq*() 2006-03-20 13:42:57 -08:00
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 [PATCH] ide-cd: remove write-only cmd field from struct cdrom_info 2005-12-15 02:20:49 +01:00
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 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
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 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
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 [PATCH] ide: actually honor drive's minimum PIO/DMA cycle times 2006-06-26 09:58:27 -07:00
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 [IDE] Add driver for Sibyte Swarm evaluation board 2005-11-17 16:23:50 +00:00
setup-pci.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00