From b6aa4b65342069f309440fe25a0508e974f424d2 Mon Sep 17 00:00:00 2001 From: Won Jung Date: Fri, 19 Aug 2016 20:56:59 +0900 Subject: [PATCH] [COMMON] media: scaler: add swrst in case of errors add swrset to go into power down mode if error is asserted Change-Id: Ib098c1856185df9514378f5b2b151a5c182bfe57 Signed-off-by: Won Jung --- drivers/media/platform/exynos/scaler/scaler-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/exynos/scaler/scaler-core.c b/drivers/media/platform/exynos/scaler/scaler-core.c index e4f86d5babc6..f145a62fd0c9 100644 --- a/drivers/media/platform/exynos/scaler/scaler-core.c +++ b/drivers/media/platform/exynos/scaler/scaler-core.c @@ -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); -- 2.20.1