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
..
2006-08-02 10:53:18 -04:00
2006-08-01 10:37:25 +10:00
2006-09-24 20:07:49 -07:00
2006-08-27 21:59:59 -05:00
2006-07-03 09:41:12 -05:00
2006-01-01 22:21:50 +01:00
2006-01-14 10:55:12 -06:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-07-03 09:41:12 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2006-08-04 09:28:43 -04:00
2005-04-16 15:20:36 -07:00
2006-07-03 09:41:12 -05:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2005-11-09 15:44:09 -05:00
2006-09-23 20:28:19 -05:00
2005-04-16 15:20:36 -07:00
2006-08-23 15:33:07 -07:00
2006-08-06 15:59:26 -05:00
2005-11-09 15:48:20 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-08-06 15:59:26 -05:00
2005-04-16 15:20:36 -07:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2006-08-31 11:18:03 -04:00
2005-04-16 15:20:36 -07:00
2006-08-27 21:59:59 -05:00
2006-08-06 15:50:50 -05:00
2006-08-06 15:51:12 -05:00
2006-09-23 15:33:43 -05:00
2006-09-23 15:33:43 -05:00
2006-09-24 01:52:47 -04:00
2006-08-01 10:37:25 +10:00
2005-04-16 15:20:36 -07:00
2006-06-25 10:00:58 -07:00
2006-06-25 10:00:58 -07:00
2006-09-24 01:52:47 -04:00
2005-04-16 15:20:36 -07:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2006-06-26 09:58:18 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-07-03 09:41:12 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-11-09 15:48:20 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-05-20 12:53:13 -05:00
2005-05-20 12:53:13 -05:00
2005-05-20 12:53:13 -05:00
2006-07-03 09:41:12 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-09-23 17:37:44 -05:00
2005-04-16 15:20:36 -07:00
2006-06-26 09:30:00 -05:00
2005-04-16 15:20:36 -07:00
2006-08-06 15:59:26 -05:00
2005-04-16 15:20:36 -07:00
2006-08-26 09:25:06 -05:00
2006-09-12 17:12:31 -05:00
2006-03-23 07:38:09 -08:00
2005-04-16 15:20:36 -07:00
2006-07-09 11:27:03 -05:00
2006-06-29 11:06:30 -04:00