Re: [PATCH 2/2] serial: imx: Fix the CTS_B polarity in RS485 mode

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

 



On 2017-01-30 12:12, Fabio Estevam wrote:
From: Fabio Estevam <fabio.estevam@xxxxxxx>

When userspace passes the SER_RS485_RTS_ON_SEND flag it means that the
CTS_B pin should go to logic level high before the transmission begins.

So setting the SER_RS485_RTS_ON_SEND flag sets CTS_B active high during send.

When userspace passes the SER_RS485_RTS_AFTER_SEND flag it means that the
CTS_B pin should go to logic level low after the transmission finishes.

And setting the SER_RS485_RTS_AFTER_SEND flag sets CTS_B active low after send ?

I don't get it. First, isn't CTS an input instead of an output?

And if I follow this through and want CTS_B high during a transmit only then I
must set both SER_RS485_RTS_ON_SEND and SER_RS485_RTS_AFTER_SEND.

Kind regards,
Maarten

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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