]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: uapi: Add support for bus termination
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 13 May 2017 07:29:04 +0000 (09:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 14:34:55 +0000 (16:34 +0200)
commite8759ad17d41913dfeb49736ca7fbfbc96f32c54
tree3acd33e2020aeeba4bbc51ea16946181234ba875
parentd1e06a4392d0e65f92d3e8c7020061aaeceed502
serial: uapi: Add support for bus termination

The Siemens IOT2040 comes with a RS485 interface that allows to enable
or disable bus termination via software. Add a bit to the flags field of
serial_rs485 that applications can set in order to request this feature
from the hardware. This seems generic enough to add it for everyone.
Existing driver will simply ignore it when set.

Signed-off-by: Sascha Weisenberger <sascha.weisenberger@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/serial.h