Re: [PATCH V2] serial: Add ioctl to enable auto rs485 mode with some Exar UARTs

Matthias Fuchs
2009-01-07T21:56:08Z

> On Fri, 2009-01-02 at 17:26 +0100, Matthias Fuchs wrote:
> > Some Exar UARTs support a auto rs485 mode. In this mode
> > the UART's RTS# pin is activated during transmitting and
> > can be used to enable a rs485 line driver.
> --->8----
>
> > +
> > + case TIOCGRS485:
> > + {
> > + struct serial_rs485 rs485ctrl;
>
> Should the TIOCGRS485 call set delay_rts_before_send structure element
> to 0 to demonstrate that there is no delay ability? memset(&rs485ctrl,
> 0, sizeof(struct serial_rs485)); missing?
Yes, that makes sense. I will add the memset and also add the saving of the LCR
as Laurent requested.

Matthias