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

Commit 7d32c3d4 authored by Mitul Golani's avatar Mitul Golani Committed by Gerrit - the friendly Code Review server
Browse files

serial: msm_geni_serial: Enable interrupt post handler registration



UART resume is happening earlier during the probe and driver don't
expect any transfer that time. Hence enable interrupt after the
port open where handler gets registered.

Change-Id: I3fe63be5c4fb244cd8d37831248374d97690bb72
Signed-off-by: default avatarMitul Golani <mgolani@codeaurora.org>
parent 4a6d5df1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2624,7 +2624,11 @@ static int msm_geni_serial_runtime_resume(struct device *dev)
	start_rx_sequencer(&port->uport);
	/* Ensure that the Rx is running before enabling interrupts */
	mb();
	if (pm_runtime_enabled(dev))
	/*
	 * Do not enable irq before interrupt registration which happens
	 * at port open time.
	 */
	if (pm_runtime_enabled(dev) && port->xfer_mode != INVALID)
		enable_irq(port->uport.irq);
	IPC_LOG_MSG(port->ipc_log_pwr, "%s:\n", __func__);
exit_runtime_resume: