Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c8ac90f authored by Chandana Kishori Chiluveru's avatar Chandana Kishori Chiluveru
Browse files

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: default avatarChandana Kishori Chiluveru <cchiluve@codeaurora.org>
parent 9c978aa8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2319,6 +2319,9 @@ static void msm_geni_serial_shutdown(struct uart_port *uport)
			disable_irq(msm_port->wakeup_irq);
			free_irq(msm_port->wakeup_irq, uport);
		}

		/* 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__);
}