]> git.baikalelectronics.ru Git - kernel.git/commit
tty: moxa: Locking clean up
authorAlan Cox <alan@linux.intel.com>
Mon, 30 Nov 2009 13:18:02 +0000 (13:18 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:07 +0000 (15:18 -0800)
commit0466cd45b4b49aeae710a0e1b87e154dc53b5e86
tree9f00e6494e1ee25d29f979d8723ac361003e03d4
parent0ed10636ea3337bb08754341765ec9c38f58d356
tty: moxa: Locking clean up

- 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: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/moxa.c