1. 25 Aug, 2011 1 commit
    • Jiri Slaby's avatar
      TTY: serial, use ASYNCB_CLOSING in uart_close · 426929f8
      Jiri Slaby authored
      We need to move port->mutex locking after wait_until_sent in
      uart_close (for rationale see next patches). But if we did it now, we
      would introduce a race between close and open. This is exactly why
      port->mutex is locked at the top of uart_close.
      
      To avoid the race, we add ASYNCB_CLOSING to uart_close. Like every
      other sane TTY driver. Thanks to tty_port_block_til_ready used in
      uart_open we will have this for free. Then we can move the port->mutex
      lock.
      
      Also note that this will make the conversion to tty_port helpers
      easier. They are currently handling ASYNC_CLOSING flag correctly.
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      426929f8
  2. 24 Aug, 2011 8 commits
  3. 23 Aug, 2011 21 commits
  4. 22 Aug, 2011 6 commits
  5. 21 Aug, 2011 4 commits