• Alan Cox's avatar
    tty: moxa: Locking clean up · a808ac0c
    Alan Cox authored
    - The open lock is needed to fix up the case of a board reset occuring during
      tty open but too early for a sane hangup response.
    - The lock can however got for other cases
    - Use the port mutex for get/setserial
    - Fix up the confused lack of locking on the THROTTLE and other bits in the
      private flags. Just use set/test/clear bit and it covers the cases we need
    Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    a808ac0c
moxa.c 52.9 KB