1. 26 9月, 2006 1 次提交
    • D
      fix broken/dubious driver suspend() methods · 8b4b8a24
      David Brownell 提交于
      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: NDavid Brownell <dbrownell@users.sourceforge.net>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Cc: Greg KH <greg@kroah.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8b4b8a24
  2. 31 7月, 2006 1 次提交
  3. 14 7月, 2006 1 次提交
  4. 01 7月, 2006 1 次提交
  5. 28 3月, 2006 1 次提交
  6. 09 1月, 2006 1 次提交
  7. 31 10月, 2005 1 次提交
  8. 23 9月, 2005 1 次提交
  9. 05 9月, 2005 1 次提交
  10. 07 7月, 2005 1 次提交
  11. 18 6月, 2005 1 次提交
  12. 17 4月, 2005 2 次提交