serial: msm_geni_serial: Reset UART error code to default during shutdown

Currently driver is seting UART error code to default only when
BT host calling TIOCFAULT crash ioctl.

This change is to reset UART error code to default during shutdown
so that it will helps in passing correct UART error code from UART driver
from next session.

Change-Id: I2a073634699d54e905ca3970392563f7d8130640
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
This commit is contained in:
Chandana Kishori Chiluveru 2021-07-14 14:59:58 +05:30 • committed by Gerrit - the friendly Code Review server
commit f5945564e7

View file

@ -2380,6 +2380,8 @@ static void msm_geni_serial_shutdown(struct uart_port *uport)
IPC_LOG_MSG(msm_port->ipc_log_misc,
"%s: Error %d pinctrl_select_state\n", __func__, ret);
}
/* Reset UART error to default during port_close() */
msm_port->uart_error = UART_ERROR_DEFAULT;
}
IPC_LOG_MSG(msm_port->ipc_log_misc, "%s: End\n", __func__);
}