Re: [PATCH 1/1] drivers: tty: imx: fix flags of rs485 not work properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It seems gmail refuses to send this to zaq14760@xxxxxxxxx (the author).

On 06. 09. 24, 4:19, LiangCheng Wang wrote:
The rs485.flags are lost in functions such as imx_uart_stop_tx(),
causing the function of RS485 to be invalid when using the
serial port as the RS485 port. Use a variable to store the state to
avoid this issue.

AFAICT, this feels rather wrong. Any rs485 experts around?

At minimum, how are the flags "lost" and why this does not matter to other drivers?

--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -209,7 +209,7 @@ struct imx_port {
  	const struct imx_uart_data *devdata;
struct mctrl_gpios *gpios;
-
+	int flags;

Definitely not int for flags.

thanks,
--
js
suse labs





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux