Skip to content

RFC serial: make hardware flow control more flexible

Aristeu Rozanski linux-serial 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6serial_core: add termiox supportdrivers/char/tty_io.c drivers/serial/serial_core.c include/linux/serial_core.h +1 more+90 -80 replies
2/6serial_core: add separated CTS, RTS, DTR, DSR flow control flagsinclude/linux/serial_core.h+5 -10 replies
3/6serial_core: use port flags to determine hardware flow controldrivers/serial/serial_core.c include/linux/serial_core.h+133 -230 replies
4/6serial: introduce uart_handle_dsr_change()drivers/serial/8250.c drivers/serial/amba-pl010.c drivers/serial/amba-pl011.c +17 more+65 -420 replies
5/6serial_core: dont assert DTR pin when its being used for flow controldrivers/serial/serial_core.c include/linux/serial_core.h+25 -100 replies
6/6serial: convert drivers to use uart_flow_output_allowed()drivers/serial/8250.c drivers/serial/pxa.c drivers/serial/samsung.c +3 more+34 -410 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/6] serial: make hardware flow control more flexible

This series of patches begins the changes in the serial code to allow more flexible hardware flow control rules. Instead of having fixed models like RTS/CTS or DSR/DTR, the new termiox structure will instead allow to specify which pins will be used.

Currently, termiox has four flags: RTSXOFF, CTSXON, DTRXOFF and DSRXON. This is not yet enough to fully specify Linux' CRTSCTS since it uses the DTR always on while the serial port is available (and RTS to signal if the system is ready or not to receive data). The plan is add RTSON and DTRON to termiox to allow the user to specify that those pins will be always set while the serial port is available.

These patches are not intended for inclusion, just to continue the discussion.

Signature · 1 line
Aristeu