1. 08 1月, 2009 1 次提交
    • A
      USB: Enhance usage of pm_message_t · 65bfd296
      Alan Stern 提交于
      This patch (as1177) modifies the USB core suspend and resume
      routines.  The resume functions now will take a pm_message_t argument,
      so they will know what sort of resume is occurring.  The new argument
      is also passed to the port suspend/resume and bus suspend/resume
      routines (although they don't use it for anything but debugging).
      
      In addition, special pm_message_t values are used for user-initiated,
      device-initiated (i.e., remote wakeup), and automatic suspend/resume.
      By testing these values, drivers can tell whether or not a particular
      suspend was an autosuspend.  Unfortunately, they can't do the same for
      resumes -- not until the pm_message_t argument is also passed to the
      drivers' resume methods.  That will require a bigger change.
      
      IMO, the whole Power Management framework should have been set up this
      way in the first place.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      65bfd296
  2. 14 11月, 2008 1 次提交
    • B
      USB: cdc-acm.c: fix recursive lock in acm_start_wb error path · ad0b65ef
      Brandon Philips 提交于
      Fixes an obvious bug in cdc-acm by avoiding a recursive lock on
      acm_start_wb()'s error path. Should apply towards 2.6.27 stable and
      2.6.28.
      
      =============================================
      [ INFO: possible recursive locking detected ]
      2.6.27-2-pae #109
      ---------------------------------------------
      python/31449 is trying to acquire lock:
       (&acm->write_lock){++..}, at: [<f89a0348>] acm_start_wb+0x5c/0x7b [cdc_acm]
      
      but task is already holding lock:
       (&acm->write_lock){++..}, at: [<f89a04fb>] acm_tty_write+0xe1/0x167 [cdc_acm]
      
      other info that might help us debug this:
      2 locks held by python/31449:
       #0:  (&tty->atomic_write_lock){--..}, at: [<c0260fae>] tty_write_lock+0x14/0x3b
       #1:  (&acm->write_lock){++..}, at: [<f89a04fb>] acm_tty_write+0xe1/0x167 [cdc_acm]
      
      stack backtrace:
      Pid: 31449, comm: python Not tainted 2.6.27-2-pae #109
       [<c030f42f>] ? printk+0xf/0x18
       [<c0149f33>] __lock_acquire+0xc7b/0x1316
       [<c014a63e>] lock_acquire+0x70/0x97
       [<f89a0348>] ? acm_start_wb+0x5c/0x7b [cdc_acm]
       [<c0312109>] _spin_lock_irqsave+0x37/0x47
       [<f89a0348>] ? acm_start_wb+0x5c/0x7b [cdc_acm]
       [<f89a0348>] acm_start_wb+0x5c/0x7b [cdc_acm]
       [<f89a055d>] acm_tty_write+0x143/0x167 [cdc_acm]
       [<c0262a98>] write_chan+0x1cd/0x297
       [<c012527e>] ? default_wake_function+0x0/0xd
       [<c026111e>] tty_write+0x149/0x1b9
       [<c02628cb>] ? write_chan+0x0/0x297
       [<c01912c5>] ? rw_verify_area+0x76/0x98
       [<c0260fd5>] ? tty_write+0x0/0x1b9
       [<c01919ba>] vfs_write+0x8c/0x136
       [<c0191afd>] sys_write+0x3b/0x60
       [<c0103beb>] sysenter_do_call+0x12/0x3f
       =======================
      Signed-off-by: NBrandon Philips <bphilips@suse.de>
      Cc: Oliver Neukum <oliver@neukum.org>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ad0b65ef
  3. 23 10月, 2008 1 次提交
  4. 18 10月, 2008 2 次提交
  5. 22 8月, 2008 2 次提交
  6. 14 8月, 2008 4 次提交
  7. 23 7月, 2008 1 次提交
  8. 22 7月, 2008 3 次提交
  9. 04 7月, 2008 1 次提交
  10. 15 5月, 2008 1 次提交
  11. 29 4月, 2008 1 次提交
  12. 25 4月, 2008 5 次提交
  13. 22 2月, 2008 1 次提交
  14. 02 2月, 2008 2 次提交
  15. 19 10月, 2007 1 次提交
    • J
      Add missing newlines to some uses of dev_<level> messages · 898eb71c
      Joe Perches 提交于
      Found these while looking at printk uses.
      
      Add missing newlines to dev_<level> uses
      Add missing KERN_<level> prefixes to multiline dev_<level>s
      Fixed a wierd->weird spelling typo
      Added a newline to a printk
      Signed-off-by: NJoe Perches <joe@perches.com>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Mark M. Hoffman <mhoffman@lightlink.com>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: Tilman Schmidt <tilman@imap.cc>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Stephen Hemminger <shemminger@linux-foundation.org>
      Cc: Greg KH <greg@kroah.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: James Smart <James.Smart@Emulex.Com>
      Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Jaroslav Kysela <perex@suse.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      898eb71c
  16. 23 8月, 2007 1 次提交
  17. 20 7月, 2007 1 次提交
  18. 13 7月, 2007 1 次提交
  19. 09 5月, 2007 1 次提交
  20. 28 4月, 2007 1 次提交
  21. 10 3月, 2007 1 次提交
  22. 17 2月, 2007 2 次提交
  23. 09 12月, 2006 1 次提交
    • A
      [PATCH] tty: switch to ktermios · 606d099c
      Alan Cox 提交于
      This is the grungy swap all the occurrences in the right places patch that
      goes with the updates.  At this point we have the same functionality as
      before (except that sgttyb() returns speeds not zero) and are ready to
      begin turning new stuff on providing nobody reports lots of bugs
      
      If you are a tty driver author converting an out of tree driver the only
      impact should be termios->ktermios name changes for the speed/property
      setting functions from your upper layers.
      
      If you are implementing your own TCGETS function before then your driver
      was broken already and its about to get a whole lot more painful for you so
      please fix it 8)
      
      Also fill in c_ispeed/ospeed on init for most devices, although the current
      code will do this for you anyway but I'd like eventually to lose that extra
      paranoia
      
      [akpm@osdl.org: bluetooth fix]
      [mp3@de.ibm.com: sclp fix]
      [mp3@de.ibm.com: warning fix for tty3270]
      [hugh@veritas.com: fix tty_ioctl powerpc build]
      [jdike@addtoit.com: uml: fix ->set_termios declaration]
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NMartin Peschke <mp3@de.ibm.com>
      Acked-by: NPeter Oberparleiter <oberpar@de.ibm.com>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NHugh Dickins <hugh@veritas.com>
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      606d099c
  24. 02 12月, 2006 1 次提交
  25. 22 11月, 2006 1 次提交
  26. 18 10月, 2006 2 次提交