serial: general fixes in the serial_rs485 structure
authorClaudio Scordino <claudio@evidence.eu.com>
Tue, 20 Jul 2010 22:26:47 +0000 (15:26 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 20:47:45 +0000 (13:47 -0700)
commit1b6331848b69d1ed165a6bdc75c4046d68767563
tree8bb63607eed2f95dfcc460bfb0606de5ff7747b8
parent93e3d58284626ff6466f9c3dac8800cd6f8079c6
serial: general fixes in the serial_rs485 structure

Fix several issues related to the RS485 interface:

 - It adds the flag SER_RS485_RTS_BEFORE_SEND that was missing from the
   serial_rs485 structure (even if "delay_rts_before_send" was existing)

 - It adds a further "delay_rts_after_send" field for those drivers that
   can have a delay after send (e.g., atmel_serial)

 - It fixes the usage of the structure in the atmel_serial driver (where
   "delay_rts_before_send" should be used instead of "delay_rts_after_send").

Signed-off-by: Claudio Scordino <claudio@evidence.eu.com>
Signed-off-by: Bernhard Roth <br@pwrnet.de>
Cc: Philippe De Muyter <phdm@macqel.be>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/atmel_serial.c
include/linux/serial.h