提交 be7da1a2 编写于 作者: S Sascha Hauer 提交者: Greg Kroah-Hartman

serial: imx: default to half duplex rs485

The i.MX driver defaulted to full duplex rs485 which is rather
unusual and doesn't match the default implemented in other drivers.

So change the default to half duplex.
Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 af2f9276
...@@ -2112,8 +2112,7 @@ static int serial_imx_probe(struct platform_device *pdev) ...@@ -2112,8 +2112,7 @@ static int serial_imx_probe(struct platform_device *pdev)
sport->port.fifosize = 32; sport->port.fifosize = 32;
sport->port.ops = &imx_pops; sport->port.ops = &imx_pops;
sport->port.rs485_config = imx_rs485_config; sport->port.rs485_config = imx_rs485_config;
sport->port.rs485.flags = sport->port.rs485.flags = SER_RS485_RTS_ON_SEND;
SER_RS485_RTS_ON_SEND | SER_RS485_RX_DURING_TX;
sport->port.flags = UPF_BOOT_AUTOCONF; sport->port.flags = UPF_BOOT_AUTOCONF;
init_timer(&sport->timer); init_timer(&sport->timer);
sport->timer.function = imx_timeout; sport->timer.function = imx_timeout;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册