From 16e182f7436599dc6c35925f7319ec16a8218888 Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Mon, 18 May 2015 19:32:57 +0900 Subject: [PATCH] [COMMON] media: smfc: dump SFR when unexpected IRQ invoked Dumping SFR helps to debug unexpected IRQ. Change-Id: I58aa822c127b8087beee5c521445a8f67e18db76 Signed-off-by: Cho KyongHo --- drivers/media/platform/exynos/smfc/smfc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.20.1