[COMMON] media: scaler: add swrst in case of errors
authorWon Jung <w00.jung@samsung.com>
Fri, 19 Aug 2016 11:56:59 +0000 (20:56 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:28:18 +0000 (14:28 +0900)
add swrset to go into power down mode if error
is asserted

Change-Id: Ib098c1856185df9514378f5b2b151a5c182bfe57
Signed-off-by: Won Jung <w00.jung@samsung.com>
drivers/media/platform/exynos/scaler/scaler-core.c

index e4f86d5babc6651bfb23b966e1dc77e5168138b8..f145a62fd0c90f4e38a910e7ac01da4b74a4a682 100644 (file)
@@ -2693,6 +2693,9 @@ static irqreturn_t sc_irq_handler(int irq, void *priv)
                clear_bit(DEV_CP, &sc->state);
        }
 #endif
+       if (!SCALER_INT_OK(irq_status))
+               sc_hwset_soft_reset(sc);
+
        sc_clk_power_disable(sc);
 
        clear_bit(CTX_RUN, &ctx->flags);