msm: mdss: Change function from disbale_irq_nosync to disbale_irq
Potential deadlock can happen while we disable irq and at the same time an irq is triggered to request for the same resource. Thus, it will pre-empt the spin-lock. Hence, change the function call to disbale_irq to prevent local interrupts. Change-Id: I7b80810b13660df8801533d418c78f2db75dd5b6 Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
This commit is contained in:
parent
74891ac5bf
commit
fdbc0d26cc
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -2263,7 +2263,7 @@ static int mdss_dsi_cmd_dma_tx(struct mdss_dsi_ctrl_pdata *ctrl,
|
|||
/* clear CMD DMA and BTA_DONE isr only */
|
||||
reg_val |= (DSI_INTR_CMD_DMA_DONE | DSI_INTR_BTA_DONE);
|
||||
MIPI_OUTP(ctrl->ctrl_base + 0x0110, reg_val);
|
||||
mdss_dsi_disable_irq_nosync(ctrl, DSI_CMD_TERM);
|
||||
mdss_dsi_disable_irq(ctrl, DSI_CMD_TERM);
|
||||
complete(&ctrl->dma_comp);
|
||||
|
||||
pr_warn("%s: dma tx done but irq not triggered\n",
|
||||
|
|
Loading…
Add table
Reference in a new issue