The patch titled atmel_serial: fix RTS high after initialization in RS485 mode has been added to the -mm tree. Its filename is atmel_serial-fix-rts-high-after-initialization-in-rs485-mode.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: atmel_serial: fix RTS high after initialization in RS485 mode From: Claudio Scordino <claudio@xxxxxxxxxxxxxxx> 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. Signed-off-by: Claudio Scordino <claudio@xxxxxxxxxxxxxxx> Signed-off-by: Arkadiusz Bubala <arkadiusz.bubala@xxxxxxxxx> Tested-by: Arkadiusz Bubala <arkadiusz.bubala@xxxxxxxxx> Cc: Nicolas Ferre <nicolas.ferre@xxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/serial/atmel_serial.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff -puN drivers/serial/atmel_serial.c~atmel_serial-fix-rts-high-after-initialization-in-rs485-mode drivers/serial/atmel_serial.c --- a/drivers/serial/atmel_serial.c~atmel_serial-fix-rts-high-after-initialization-in-rs485-mode +++ a/drivers/serial/atmel_serial.c @@ -1732,6 +1732,15 @@ static int __devinit atmel_serial_probe( device_init_wakeup(&pdev->dev, 1); platform_set_drvdata(pdev, port); + if (port->rs485.flags & SER_RS485_ENABLED) { + unsigned int control = 0; + unsigned int mode = 0; + control |= ATMEL_US_RTSEN; + mode |= ATMEL_US_USMODE_NORMAL; + UART_PUT_MR(&port->uart, mode); + UART_PUT_CR(&port->uart, control); + } + return 0; err_add_port: _ Patches currently in -mm which might be from claudio@xxxxxxxxxxxxxxx are atmel_serial-fix-rts-high-after-initialization-in-rs485-mode.patch atmel_serial-fix-rts-high-after-initialization-in-rs485-mode-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html