serial: MPSC: Stop rx engine when CREAD cleared
authorStephane Chazelas <stephane@artesyncp.com>
Tue, 31 Jul 2007 07:38:59 +0000 (00:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 31 Jul 2007 22:39:41 +0000 (15:39 -0700)
commit5797ae364c35db8c184f38b37595be59bf761e93
tree2912a5178b0d5df95d8b0b759bca1c2ac9a7f8c2
parent6c1ead5e77c4e41d58ae6e6c3285ad38275df4a8
serial: MPSC: Stop rx engine when CREAD cleared

Currently, the MPSC driver doesn't stop recieving characters when the CREAD
flag in termios->c_cflag is cleared.  It should.  Also, only start receiving
if its not already started.

Signed-off-by: Stephane Chazelas <stephane@artesyncp.com>
Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/mpsc.c