]> git.baikalelectronics.ru Git - kernel.git/commitdiff
serial: max310x: Remove serial_rs485 sanitization
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 6 Jun 2022 10:04:29 +0000 (13:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 11:49:57 +0000 (13:49 +0200)
Serial core handles serial_rs485 sanitization.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220606100433.13793-33-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c

index 7b0c1351d75eeb02bde57bb21a22fc74e97ed893..4915a786e31585b0f58e696299fa96a91ac6a7f7 100644 (file)
@@ -1045,8 +1045,6 @@ static int max310x_rs485_config(struct uart_port *port,
            (rs485->delay_rts_after_send > 0x0f))
                return -ERANGE;
 
-       rs485->flags &= SER_RS485_RTS_ON_SEND | SER_RS485_RX_DURING_TX |
-                       SER_RS485_ENABLED;
        port->rs485 = *rs485;
 
        schedule_work(&one->rs_work);