Commit 8bec874f authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by Greg Kroah-Hartman
Browse files

serial: RS485 termination is supported if DT provides one

parent 0139da50
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3409,6 +3409,8 @@ int uart_get_rs485_mode(struct uart_port *port)
		port->rs485_term_gpio = NULL;
		return dev_err_probe(dev, ret, "Cannot get rs485-term-gpios\n");
	}
	if (port->rs485_term_gpio)
		port->rs485_supported.flags |= SER_RS485_TERMINATE_BUS;

	return 0;
}