From a023263162d16dda13c64b03b24aafa5de689774 Mon Sep 17 00:00:00 2001 From: Raghavendra Rao Ananta Date: Sun, 26 Apr 2020 00:20:45 -0700 Subject: [PATCH] soc: qcom: eud: Define dummy set_temios and get_mctrl callbacks Apparently, serial core calls into the serial driver's .set_termios and .get_mctrl uart_ops callbacks without checking if it exists or not. Hence, implement a dummy definition of the callback to satisfy the serial core. Change-Id: Ic2e9eda5fb8b20be55c59f93ee05c2aa51a6362e Signed-off-by: Raghavendra Rao Ananta --- drivers/soc/qcom/eud.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/soc/qcom/eud.c b/drivers/soc/qcom/eud.c index 26d404fc5eb5..fd332cd541a2 100644 --- a/drivers/soc/qcom/eud.c +++ b/drivers/soc/qcom/eud.c @@ -297,6 +297,17 @@ static void eud_set_mctrl(struct uart_port *port, unsigned int mctrl) /* Nothing to set */ } +static unsigned int eud_get_mctrl(struct uart_port *port) +{ + return 0; +} + +static void eud_set_termios(struct uart_port *port, struct ktermios *new, + struct ktermios *old) +{ + /* Nothing to do here, but to satisfy the serial core */ +} + static void eud_stop_tx(struct uart_port *port) { /* Disable Tx interrupt */ @@ -377,6 +388,8 @@ static int eud_verify_port(struct uart_port *port, static const struct uart_ops eud_uart_ops = { .tx_empty = eud_tx_empty, .set_mctrl = eud_set_mctrl, + .get_mctrl = eud_get_mctrl, + .set_termios = eud_set_termios, .stop_tx = eud_stop_tx, .start_tx = eud_start_tx, .stop_rx = eud_stop_rx,