From: Cho KyongHo Date: Mon, 18 May 2015 10:32:57 +0000 (+0900) Subject: [COMMON] media: smfc: dump SFR when unexpected IRQ invoked X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=16e182f7436599dc6c35925f7319ec16a8218888;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] media: smfc: dump SFR when unexpected IRQ invoked Dumping SFR helps to debug unexpected IRQ. Change-Id: I58aa822c127b8087beee5c521445a8f67e18db76 Signed-off-by: Cho KyongHo --- diff --git a/drivers/media/platform/exynos/smfc/smfc.c b/drivers/media/platform/exynos/smfc/smfc.c index 7a2cc4343fbf..3fd3e8360347 100644 --- a/drivers/media/platform/exynos/smfc/smfc.c +++ b/drivers/media/platform/exynos/smfc/smfc.c @@ -285,7 +285,10 @@ static irqreturn_t exynos_smfc_irq_handler(int irq, void *priv) u32 thumb_streamsize = smfc_get_2nd_streamsize(smfc); bool suspending = false; - BUG_ON(!(smfc->flags & SMFC_DEV_RUNNING)); + if (!(smfc->flags & SMFC_DEV_RUNNING)) { + smfc_dump_registers(smfc); + BUG(); + } spin_lock(&smfc->flag_lock); suspending = !!(smfc->flags & SMFC_DEV_SUSPENDING);