linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Handling of automatic flow control in UART drivers
@ 2014-10-13 14:48 Johannes Thumshirn
  2014-10-13 17:09 ` Grant Edwards
  2014-10-13 17:13 ` Peter Hurley
  0 siblings, 2 replies; 6+ messages in thread
From: Johannes Thumshirn @ 2014-10-13 14:48 UTC (permalink / raw)
  To: linux-serial; +Cc: Geißler Andreas, Johannes Thumshirn

Hi,

We have problem with automatic flow control (i.e. auto RTS/CTS handshaking) in
our uart driver (men_z135_uart.c). It's probably less a technical but a problem
with me understanding the API.

I active the hardware auto flow control feature on the CRTSCTS flag in my
uart_ops->set_termios() function. But then the RTS flag is set on every call of
the uart_ops->set_mctrl() function, this seems to confuse the hardware. Is there
a way to tell the tty layer that flow control is handled solely by hardware?
I.e. is there a way of telling serial core to leave out the calls to
uart_set_mctrl()/uart_clear_mctrl() in uart_throttle()/uart_unthrottle(), or is
setting UPF_FLOW_HARD and then implementing a dummy port->ops->{un}throttle()
the correct way?

Are there any drivers that use a hardware's automatic flow control feature I can
use as an example? A fast grep on AFE reveals some spots, but I can't really
find a difference to my implementation.

Thanks in advance,
	Johannes

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-10-23  5:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-13 14:48 Handling of automatic flow control in UART drivers Johannes Thumshirn
2014-10-13 17:09 ` Grant Edwards
2014-10-13 17:13 ` Peter Hurley
2014-10-14  9:22   ` Johannes Thumshirn
2014-10-14 11:18     ` Peter Hurley
2014-10-23  5:51       ` Johannes Thumshirn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).