1. 01 5月, 2016 2 次提交
  2. 29 1月, 2016 3 次提交
  3. 28 1月, 2016 1 次提交
  4. 18 10月, 2015 2 次提交
    • P
      tty: Remove tty_port::close_wait · cc2aaabf
      Peter Hurley 提交于
      With the removal of tty_wait_until_sent_from_close(), tty drivers
      no longer wait during open for parallel closes to complete (instead,
      the tty core waits before calling the driver open() method). Thus,
      the close_wait waitqueue is no longer used for waiting.
      
      Remove struct tty_port::close_wait.
      Signed-off-by: NPeter Hurley <peter@hurleysoftware.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cc2aaabf
    • P
      tty: Remove ASYNC_CLOSING checks in open()/hangup() methods · fef062cb
      Peter Hurley 提交于
      Since at least before 2.6.30, tty drivers that do not drop the tty lock
      while closing cannot observe ASYNC_CLOSING set while holding the
      tty lock; this includes the tty driver's open() and hangup() methods,
      since the tty core calls these methods holding the tty lock.
      
      For these drivers, waiting for ASYNC_CLOSING to clear while opening
      is not required, since this condition cannot occur. Similarly, even
      when the open() method drops and reacquires the tty lock after
      blocking, ASYNC_CLOSING cannot be set (again, for drivers that
      do not drop the tty lock while closing).
      
      Now that tty port drivers no longer drop the tty lock while closing
      (since 'tty: Remove tty_wait_until_sent_from_close()'), the same
      conditions apply: waiting for ASYNC_CLOSING to clear while opening
      is not required, nor is re-checking ASYNC_CLOSING after dropping and
      reacquiring the tty lock while blocking (eg., in *_block_til_ready()).
      
      Note: The ASYNC_CLOSING flag state is still maintained since several
      bitrotting drivers use it for (dubious) other purposes.
      Signed-off-by: NPeter Hurley <peter@hurleysoftware.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      fef062cb
  5. 10 1月, 2015 1 次提交
  6. 09 12月, 2013 1 次提交
  7. 21 5月, 2013 1 次提交
  8. 16 4月, 2013 1 次提交
  9. 19 3月, 2013 2 次提交
  10. 18 1月, 2013 1 次提交
  11. 16 1月, 2013 4 次提交
  12. 22 11月, 2012 1 次提交
  13. 16 11月, 2012 1 次提交
    • J
      TTY: call tty_port_destroy in the rest of drivers · 191c5f10
      Jiri Slaby 提交于
      After commit "TTY: move tty buffers to tty_port", the tty buffers are
      not freed in some drivers. This is because tty_port_destructor is not
      called whenever a tty_port is freed. This was an assumption I counted
      with but was unfortunately untrue. So fix the drivers to fulfil this
      assumption.
      
      To be sure, the TTY buffers (and later some stuff) are gone along with
      the tty_port, we have to call tty_port_destroy at tear-down places.
      This is mostly where the structure containing a tty_port is freed.
      This patch does exactly that -- put tty_port_destroy at those places.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      191c5f10
  14. 14 8月, 2012 1 次提交
    • J
      TTY: use tty_port_register_device · 734cc178
      Jiri Slaby 提交于
      Currently we have no way to assign tty->port while performing tty
      installation. There are two ways to provide the link tty_struct =>
      tty_port. Either by calling tty_port_install from tty->ops->install or
      tty_port_register_device called instead of tty_register_device when
      the device is being set up after connected.
      
      In this patch we modify most of the drivers to do the latter. When the
      drivers use tty_register_device and we have tty_port already, we
      switch to tty_port_register_device. So we have the tty_struct =>
      tty_port link for free for those.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Acked-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      734cc178
  15. 17 7月, 2012 1 次提交
  16. 09 3月, 2012 2 次提交
  17. 13 1月, 2012 1 次提交
  18. 27 7月, 2011 1 次提交
  19. 20 4月, 2011 1 次提交
    • J
      TTY: rocket, remove unused variables · d65c57f4
      Jiri Slaby 提交于
      drivers/tty/rocket.c:1393:2: warning: Value stored to 'cp' is never read
              cp = &info->channel;
              ^    ~~~~~~~~~~~~~~
      drivers/tty/rocket.c:1412:2: warning: Value stored to 'cp' is never read
              cp = &info->channel;
              ^    ~~~~~~~~~~~~~~
      drivers/tty/rocket.c:1730:2: warning: Value stored to 'cp' is never read
              cp = &info->channel;
              ^    ~~~~~~~~~~~~~~
      drivers/tty/rocket.c:1825:3: warning: Value stored to 'str' is never read
                      str = "8";
                      ^     ~~~
      [many 'str' warnings stripped]
      drivers/tty/rocket.c:2037:3: warning: Value stored to 'board_type' is never read
                      board_type = "RocketModem";
                      ^            ~~~~~~~~~~~~~
      [some 'board_type' warnings stripped]
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d65c57f4
  20. 31 3月, 2011 1 次提交
  21. 23 2月, 2011 1 次提交
  22. 18 2月, 2011 3 次提交
  23. 11 12月, 2010 1 次提交
  24. 28 10月, 2010 1 次提交
  25. 24 8月, 2010 1 次提交
  26. 11 8月, 2010 1 次提交
    • A
      rocket: kill BKL · 417b6e0e
      Alan Cox 提交于
      We can use the port mutex for this and also for the hangup path so removing
      the problematic use of the hangup mutex in this driver. Fix up the locking
      on the various port flags while we are at it.
      
      Ultimately this driver needs to be using tty_port_ helpers which would sort
      this out far better.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      417b6e0e
  27. 13 7月, 2009 1 次提交
  28. 11 6月, 2009 2 次提交