Home
last modified time | relevance | path

Searched hist:"7 ecc77011c6fb40d3eef7c6a0ebcec61e69b3ec3" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/tty/serial/8250/
H A D8250_fintek.cdiff 7ecc77011c6fb40d3eef7c6a0ebcec61e69b3ec3 Mon Nov 06 04:49:12 CST 2017 Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> serial: 8250_fintek: Return -EINVAL on invalid configuration

Hardware does not support having the same RTS level during RX and TX
when RS485 mode is on (URA in Fintek terminology).

The manufacturer has also confirmed that the delays are not enabled if
the RS485 mode is not enabled.

Therefore we should return -EINVAL if the user wants to have the same
value for RTS_ON_SEND and RTS_AFTER_SEND.

Cc: "Ji-Ze Hong (Peter Hong)" <hpeter@gmail.com>
Cc: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>