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

Commit 445cee88 authored by Vivek Kumar's avatar Vivek Kumar Committed by Gerrit - the friendly Code Review server
Browse files

serial: msm_serial_hs: Configure IRQ flag



Configure irq flag for wake_up IRQ which is
passed from the DT.

Change-Id: Ib521a73a6164053c9bf846078482afb6671b76e0
Signed-off-by: default avatarVivek Kumar <vivekuma@codeaurora.org>
parent d0d5319f
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 * MSM 7k High speed uart driver
 *
 * Copyright (c) 2008 Google Inc.
 * Copyright (c) 2007-2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2007-2018, The Linux Foundation. All rights reserved.
 * Modified: Nick Pelly <npelly@google.com>
 *
 * All source code in this file is licensed under the following license
@@ -2656,6 +2656,7 @@ static int msm_hs_startup(struct uart_port *uport)
	int ret;
	int rfr_level;
	unsigned long flags;
	u32 irq_type;
	unsigned int data;
	struct msm_hs_port *msm_uport = UARTDM_TO_MSM(uport);
	struct circ_buf *tx_buf = &uport->state->xmit;
@@ -2676,8 +2677,11 @@ static int msm_hs_startup(struct uart_port *uport)
	msm_hs_resource_vote(msm_uport);

	if (is_use_low_power_wakeup(msm_uport)) {
		irq_type = irq_get_trigger_type(msm_uport->wakeup.irq);
		if (irq_type == IRQ_TYPE_NONE)
			irq_type = IRQ_TYPE_EDGE_FALLING;
		ret = request_irq(msm_uport->wakeup.irq, msm_hs_wakeup_isr,
					IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
					irq_type | IRQF_ONESHOT,
					"msm_hs_wakeup", msm_uport);
		if (unlikely(ret)) {
			MSM_HS_ERR("%s():Err getting uart wakeup_irq %d\n",