greybus: uart: Latch modem control signals for tciomget

Latch signals coming from UART module for
- GB_UART_CTRL_DCD
- GB_UART_CTRL_DSR
- GB_UART_CTRL_RI

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Bryan O'Donoghue 2015-06-16 11:28:11 +01:00 committed by Greg Kroah-Hartman
parent fd7b435f21
commit 3ee2266c72

View file

@ -102,7 +102,7 @@ static int gb_uart_request_recv(u8 type, struct gb_operation *op)
break;
case GB_UART_TYPE_SERIAL_STATE:
serial_state = request->payload;
/* TODO: Parse state change and translate to tty API. */
gb_tty->ctrlin = le16_to_cpu(serial_state->control);
break;
default:
dev_err(&connection->dev,