From: Won Jung Date: Fri, 19 Aug 2016 11:56:59 +0000 (+0900) Subject: [COMMON] media: scaler: add swrst in case of errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b6aa4b65342069f309440fe25a0508e974f424d2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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);