Re: [PATCH/RFC] 8250: Auto RS485 direction control

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

 



> On devices which don't support hardware RS485, what should be done is
> the termios bit remains clear, so that programs can tell if the port
> doesn't support it (as per POSIX.)

Or the serial layer should do it in software.

> I would also stress that this feature should be limited to enabling
> _hardware_ RS485 support, and not software emulation of that.  The
> reason being is that with plain 16550 UARTs, the best you can do 
> with interrupts is to know when the last character is transferred out
> of the transmit holding register into the transmit shift register - in
> other words, before the last character has finished transmission.

So the 16550 sucks, that's not true of everyone elses uarts.

> Basically, software RS485 is very yucky, and we've always resisted
> having that support in the kernel.

Agreed entirely. Which takes us more and more to the setserial path even
if it means standardising some setserial bit to get everyone back in line.

Alan
--
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