Rework the common helper function for retrieving rs485 properties to be platform agnostic (patch [1/5]) and to allow specifying the RTS polarity (patch [2/5] and [3/5]). Amend the fsl_lpuart and imx drivers to take advantage of this and fix a bunch of bugs while at it (patch [4/5] and [5/5]). Changes v1 -> v2: Patch [1/5]: - Replace "requested" with "asked for" in commit message. (Uwe) - Drop comment "common device tree parsing helpers" from serial_core.h, it is no longer applicable now that the helper isn't DT-specific. (Uwe) Patch [2/5]: - Add Rob's ack. Patch [3/5]: - Rework uart_get_rs485_mode() to unconditionally set up the flags for active-high polarity, then change them only if active-low polarity was configured in the device properties. (Uwe) - Drop line from imx.c which unconditionally sets the RTS_ON_SEND bit. Previously this change was made in patch [5/5]. (Uwe) Thanks, Lukas Lukas Wunner (5): serial: Make retrieval of rs485 properties platform-agnostic dt-bindings: serial: Add common rs485 binding for RTS polarity serial: core: Support common rs485 binding for RTS polarity serial: fsl_lpuart: Support common rs485 binding for RTS polarity serial: imx: Support common rs485 binding for RTS polarity .../devicetree/bindings/serial/fsl-imx-uart.txt | 3 ++- .../devicetree/bindings/serial/fsl-lpuart.txt | 3 ++- .../devicetree/bindings/serial/omap_serial.txt | 1 + Documentation/devicetree/bindings/serial/rs485.txt | 1 + drivers/tty/serial/atmel_serial.c | 2 +- drivers/tty/serial/fsl_lpuart.c | 15 ++++-------- drivers/tty/serial/imx.c | 11 ++++++--- drivers/tty/serial/omap-serial.c | 11 +++++---- drivers/tty/serial/serial_core.c | 28 ++++++++++++++-------- include/linux/serial_core.h | 6 +---- 10 files changed, 45 insertions(+), 36 deletions(-) -- 2.11.0 -- 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