1. 24 1月, 2008 2 次提交
  2. 23 1月, 2008 1 次提交
  3. 15 1月, 2008 1 次提交
  4. 09 1月, 2008 1 次提交
  5. 24 12月, 2007 1 次提交
    • C
      tty: fix logic change introduced by wait_event_interruptible_timeout() · db99247a
      Cory T. Tusar 提交于
      Commit 5a52bd4a introduced a subtle logic
      change in tty_wait_until_sent().  The original version would only error out
      of the 'do { ...  } while (timeout)' loop if signal_pending() evaluated to
      true; a timeout or break due to an empty buffer would fall out of the loop
      and into the tty->driver->wait_until_sent handling.  The current
      implementation will error out on either a pending signal or an empty
      buffer, falling through to the tty->driver->wait_until_sent handling only
      on a timeout.
      
      The ->wait_until_sent() will not be reached if the buffer empties before
      timeout jiffies have elapsed.  This behavior differs from that prior to commit
      5a52bd4a.
      
      I turned this up while using a little serial download utility to bootstrap an
      ARM-based eval board.  The util worked fine on 2.6.22.x, but consistently
      failed on 2.6.23.x.  Once I'd determined that, I narrowed things down with git
      bisect, and found the above difference in logic in tty_wait_until_sent() by
      inspection.
      
      This change reverts the logic flow in tty_wait_until_sent() to match that
      prior to the aforementioned commit.
      Signed-off-by: NCory T. Tusar <ctusar@videon-central.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Acked-by: NJiri Slaby <jirislaby@gmail.com>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      db99247a
  6. 18 12月, 2007 1 次提交
  7. 06 12月, 2007 1 次提交
  8. 30 11月, 2007 1 次提交
  9. 29 11月, 2007 1 次提交
  10. 28 11月, 2007 1 次提交
  11. 22 11月, 2007 2 次提交
  12. 21 11月, 2007 1 次提交
    • R
      Freezer: Fix APM emulation breakage · cb43c54c
      Rafael J. Wysocki 提交于
      The APM emulation is currently broken as a result of commit
      83144186
      "Freezer: make kernel threads nonfreezable by default"
      that removed the PF_NOFREEZE annotations from apm_ioctl() without adding
      the appropriate freezer hooks.  Fix it and remove the unnecessary variable flags
      from apm_ioctl().
      
      Special thanks to Franck Bui-Huu <vagabon.xyz@gmail.com> for pointing out the
      problem.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Franck Bui-Huu <vagabon.xyz@gmail.com>
      Cc: Nigel Cunningham <nigel@nigel.suspend2.net>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      cb43c54c
  13. 15 11月, 2007 3 次提交
  14. 14 11月, 2007 1 次提交
  15. 07 11月, 2007 1 次提交
    • A
      [TTY]: Fix network driver interactions with TCGET/SET calls. · 0fc00e24
      Alan Cox 提交于
      Dave Miller noted various cases where line disciplines for things like
      ppp go poking around in termios themselves in ways that broke with the
      new termios code. Rather than have them all learning about termios
      internals provide proper methods for this
      
      - tty_mode_ioctl()
      
      	This handles all the terminal mode handling for speed/carrier
      etc and none of the methods are ldisc dependant so they can be called
      by any user
      
      - tty_perform_flush()
      
      	This extracts the flush functionality and enables pppd the ppp
      layer to share it cleanly.
      
      The existing n_tty_ioctl code is refactored in this patch to provide
      the new functions and to call them itself appropriately. This patch
      has no (intended) behaviour changes and simply prepares for the other
      fixes.
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0fc00e24
  16. 06 11月, 2007 4 次提交
  17. 05 11月, 2007 2 次提交
  18. 30 10月, 2007 1 次提交
  19. 29 10月, 2007 1 次提交
  20. 24 10月, 2007 6 次提交
  21. 23 10月, 2007 3 次提交
  22. 20 10月, 2007 4 次提交