Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: mxs-auart: Use generic uart-has-rtscts DT property

Convert the Freescale MXS AUART driver from using the vendor-specific
"fsl,uart-has-rtscts" to the generic "uart-has-rtscts" DT property, as
documented by the Generic Serial DT Bindings.

The old vendor-specific property is still recognized by the driver for
backwards compatibility, but it is deprecated.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Geert Uytterhoeven and committed by
Greg Kroah-Hartman
182cdcb8 1006ed7e

+3 -2
+1 -1
Documentation/devicetree/bindings/serial/fsl-mxs-auart.txt
··· 19 19 "ahb" - ahb gate. 20 20 21 21 Optional properties: 22 - - fsl,uart-has-rtscts : Indicate the UART has RTS and CTS lines 22 + - uart-has-rtscts : Indicate the UART has RTS and CTS lines 23 23 for hardware flow control, 24 24 it also means you enable the DMA support for this UART. 25 25 - {rts,cts,dtr,dsr,rng,dcd}-gpios: specify a GPIO for RTS/CTS/DTR/DSR/RI/DCD
+2 -1
drivers/tty/serial/mxs-auart.c
··· 1570 1570 } 1571 1571 s->port.line = ret; 1572 1572 1573 - if (of_get_property(np, "fsl,uart-has-rtscts", NULL)) 1573 + if (of_get_property(np, "uart-has-rtscts", NULL) || 1574 + of_get_property(np, "fsl,uart-has-rtscts", NULL) /* deprecated */) 1574 1575 set_bit(MXS_AUART_RTSCTS, &s->flags); 1575 1576 1576 1577 return 0;