Re: atmel_serial: fix RTS high after initialization in RS485 mode

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Monday, October 25, 2010 - 3:54 pm

On Sun, 24 Oct 2010 12:48:29 +0200
Claudio Scordino <claudio@evidence.eu.com> wrote:


That was a lot of code!  How about just this?

	if (port->rs485.flags & SER_RS485_ENABLED) {
		UART_PUT_MR(&port->uart, ATMEL_US_USMODE_NORMAL);
		UART_PUT_CR(&port->uart, ATMEL_US_RTSEN);
	}

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
atmel_serial: fix RTS high after initialization in RS485 mode, Claudio Scordino, (Sun Oct 24, 3:48 am)
Re: atmel_serial: fix RTS high after initialization in RS4 ..., Andrew Morton, (Mon Oct 25, 3:54 pm)