There is a case where interrupt enable is set in decon req before
decon probe is completed. There is a problem that a kernel panic
occurs if an interrupt is executed before the decon is bound. Disable
interrupts before registering interrupts. Also, irq generated when the
interrupt state is disabled is ignored.
Change-Id: I0b611aadf6c16ea8f850eb570f569e7bad792ce1
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
return IRQ_HANDLED;
ret = dc_hw_get_interrupt(&dc->hw);
+ if (!ret)
+ return IRQ_HANDLED;
for (i = 0; i < dc_info->panel_num; i++)
drm_crtc_handle_vblank(&dc->crtc[i]->base);
return ret;
}
+ dc_hw_enable_interrupt(&dc->hw, 0);
+
dc->irq = platform_get_irq(pdev, 0);
/* do not autoenable, will be enabled later */