1. 16 1月, 2013 3 次提交
    • J
      TTY: switch tty_flip_buffer_push · 2e124b4a
      Jiri Slaby 提交于
      Now, we start converting tty buffer functions to actually use
      tty_port. This will allow us to get rid of the need of tty in many
      call sites. Only tty_port will needed and hence no more
      tty_port_tty_get in those paths.
      
      Now, the one where most of tty_port_tty_get gets removed:
      tty_flip_buffer_push.
      
      IOW we also closed all the races in drivers not using tty_port_tty_get
      at all yet.
      
      Also we move tty_flip_buffer_push declaration from include/linux/tty.h
      to include/linux/tty_flip.h to all others while we are changing it
      anyway.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2e124b4a
    • J
      TTY: switch tty_insert_flip_char · 92a19f9c
      Jiri Slaby 提交于
      Now, we start converting tty buffer functions to actually use
      tty_port. This will allow us to get rid of the need of tty in many
      call sites. Only tty_port will needed and hence no more
      tty_port_tty_get in those paths.
      
      tty_insert_flip_char is the next one to proceed. This one is used all
      over the code, so the patch is huge.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      92a19f9c
    • J
      TTY: convert more flipping functions · 2f693357
      Jiri Slaby 提交于
      Now, we start converting tty buffer functions to actually use
      tty_port. This will allow us to get rid of the need of tty pointer in
      many call sites. Only tty_port will be needed and hence no more
      tty_port_tty_get calls in those paths.
      
      Now 4 string flipping ones are on turn:
      * tty_insert_flip_string_flags
      * tty_insert_flip_string_fixed_flag
      * tty_prepare_flip_string
      * tty_prepare_flip_string_flags
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2f693357
  2. 22 11月, 2012 1 次提交
  3. 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
  4. 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
  5. 17 7月, 2012 1 次提交
  6. 09 3月, 2012 2 次提交
  7. 13 1月, 2012 1 次提交
  8. 27 7月, 2011 1 次提交
  9. 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
  10. 31 3月, 2011 1 次提交
  11. 23 2月, 2011 1 次提交
  12. 18 2月, 2011 3 次提交
  13. 11 12月, 2010 1 次提交
  14. 28 10月, 2010 1 次提交
  15. 24 8月, 2010 1 次提交
  16. 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
  17. 13 7月, 2009 1 次提交
  18. 11 6月, 2009 2 次提交
  19. 03 1月, 2009 8 次提交
  20. 23 7月, 2008 1 次提交
  21. 21 7月, 2008 2 次提交
  22. 30 4月, 2008 4 次提交
  23. 20 3月, 2008 1 次提交