Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310287
b: refs/heads/master
c: 82a5019
h: refs/heads/master
i:
  310285: 233f3b7
  310283: 6f8ef7a
  310279: ea7c3b4
  310271: 97f304f
v: v3
  • Loading branch information
Sylwester Nawrocki authored and Florian Tobias Schandinat committed May 13, 2012
1 parent c7ffeab commit 662d416
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b89e1399bab8bf72762948d251e69df50a9d6d85
refs/heads/master: 82a50195cbf1197b009d42c8430a4cab24ca1480
28 changes: 10 additions & 18 deletions trunk/drivers/video/exynos/exynos_mipi_dsi_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,33 +76,25 @@ static unsigned int dpll_table[15] = {

irqreturn_t exynos_mipi_dsi_interrupt_handler(int irq, void *dev_id)
{
unsigned int intsrc = 0;
unsigned int intmsk = 0;
struct mipi_dsim_device *dsim = NULL;

dsim = dev_id;
if (!dsim) {
dev_dbg(dsim->dev, KERN_ERR "%s:error: wrong parameter\n",
__func__);
return IRQ_HANDLED;
struct mipi_dsim_device *dsim = dev_id;
unsigned int intsrc, intmsk;

if (dsim == NULL) {
dev_err(dsim->dev, "%s: wrong parameter\n", __func__);
return IRQ_NONE;
}

intsrc = exynos_mipi_dsi_read_interrupt(dsim);
intmsk = exynos_mipi_dsi_read_interrupt_mask(dsim);
intmsk = ~intmsk & intsrc;

intmsk = ~(intmsk) & intsrc;

switch (intmsk) {
case INTMSK_RX_DONE:
if (intsrc & INTMSK_RX_DONE) {
complete(&dsim_rd_comp);
dev_dbg(dsim->dev, "MIPI INTMSK_RX_DONE\n");
break;
case INTMSK_FIFO_EMPTY:
}
if (intsrc & INTMSK_FIFO_EMPTY) {
complete(&dsim_wr_comp);
dev_dbg(dsim->dev, "MIPI INTMSK_FIFO_EMPTY\n");
break;
default:
break;
}

exynos_mipi_dsi_clear_interrupt(dsim, intmsk);
Expand Down

0 comments on commit 662d416

Please sign in to comment.