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

Commit 3bc1e1f7 authored by Saket Saurabh's avatar Saket Saurabh Committed by Stephen Boyd
Browse files

msm_serial_hs: Add check to validate wakeup irq in UART clock on request



Wakeup irq is UART RX GPIO IRQ line to be configured as wakeup source and
is used as an optional property with UART. By default wakeup irq is set as
zero when it is not to be used with UART.
During UART clock on request msm_hs_request_clock_on(), calling
disable_irq_nosync() without validating wakeup irq is causing warning
message.
Hence fixing the issue by adding check to validate the wakeup irq during
UART clock on request.

CRs-Fixed: 490597
Change-Id: Iff014f41428d590117e469c1b470736383a78848
Signed-off-by: default avatarSaket Saurabh <ssaurabh@codeaurora.org>
parent f3d1e0b7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1975,6 +1975,7 @@ void msm_hs_request_clock_on(struct uart_port *uport)
	switch (msm_uport->clk_state) {
	case MSM_HS_CLK_OFF:
		wake_lock(&msm_uport->dma_wake_lock);
		if (use_low_power_wakeup(msm_uport))
			disable_irq_nosync(msm_uport->wakeup.irq);
		spin_unlock_irqrestore(&uport->lock, flags);

@@ -2349,6 +2350,7 @@ static int msm_hs_startup(struct uart_port *uport)
free_uart_irq:
	free_irq(uport->irq, msm_uport);
free_wake_irq:
	if (use_low_power_wakeup(msm_uport))
		irq_set_irq_wake(msm_uport->wakeup.irq, 0);
sps_disconnect_rx:
	if (is_blsp_uart(msm_uport))