atmel_serial: fix RTS high after initialization in RS485 mode
authorClaudio Scordino <claudio@evidence.eu.com>
Thu, 13 Jan 2011 23:45:39 +0000 (15:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:31 +0000 (17:32 -0800)
commit5dfbd1d734ef5415bc47b034df7433ba21e40e7b
tree3fbe7a9997f20e6c7db040a2fc1da68b93c10302
parent6c9ae009b298753a3baf71298d676a68b5a10c8f
atmel_serial: fix RTS high after initialization in RS485 mode

When working in RS485 mode, the atmel_serial driver keeps RTS high after
the initialization of the serial port.  It goes low only after the first
character has been sent.

[akpm@linux-foundation.org: simplify code]
Signed-off-by: Claudio Scordino <claudio@evidence.eu.com>
Signed-off-by: Arkadiusz Bubala <arkadiusz.bubala@gmail.com>
Tested-by: Arkadiusz Bubala <arkadiusz.bubala@gmail.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/atmel_serial.c