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

serial: 8250_uniphier: add auto-flow-control support

Add selective auto-flow-control support for UniPhier serial driver.

Signed-off-by: Dai Okamura <okamura.dai@socionext.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dai Okamura and committed by
Greg Kroah-Hartman
aad2d495 aca70d19

+6
+3
Documentation/devicetree/bindings/serial/uniphier-uart.txt
··· 6 6 - interrupts: a single interrupt specifier. 7 7 - clocks: phandle to the input clock. 8 8 9 + Optional properties: 10 + -auto-flow-control: enable automatic flow control support. 11 + 9 12 Example: 10 13 aliases { 11 14 serial0 = &serial0;
+3
drivers/tty/serial/8250/8250_uniphier.c
··· 222 222 up.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE; 223 223 up.capabilities = UART_CAP_FIFO; 224 224 225 + if (of_property_read_bool(dev->of_node, "auto-flow-control")) 226 + up.capabilities |= UART_CAP_AFE; 227 + 225 228 up.port.serial_in = uniphier_serial_in; 226 229 up.port.serial_out = uniphier_serial_out; 227 230 up.dl_read = uniphier_serial_dl_read;