Commit da29169e authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Greg Kroah-Hartman

serial: 8250_dw: fix 'cts-override'

We are dealing with CTS, not DSR here (we dealt with DSR a few lines
above), so set appropriate bits.
Reported-by: default avatarKevin Cernekee <cernekee@chromium.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@chromium.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent caa445d8
...@@ -364,9 +364,9 @@ static int dw8250_probe_of(struct uart_port *p, ...@@ -364,9 +364,9 @@ static int dw8250_probe_of(struct uart_port *p,
} }
if (of_property_read_bool(np, "cts-override")) { if (of_property_read_bool(np, "cts-override")) {
/* Always report DSR as active */ /* Always report CTS as active */
data->msr_mask_on |= UART_MSR_DSR; data->msr_mask_on |= UART_MSR_CTS;
data->msr_mask_off |= UART_MSR_DDSR; data->msr_mask_off |= UART_MSR_DCTS;
} }
if (of_property_read_bool(np, "ri-override")) { if (of_property_read_bool(np, "ri-override")) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment