MLK-17492 drm/imx: dec400d: set read config to '0x0' when bypass dec400d
authorFancy Fang <chen.fang@nxp.com>
Thu, 1 Feb 2018 15:21:58 +0000 (23:21 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:54:52 +0000 (14:54 -0500)
When the DEC400D is set to bypass mode from decompressed mode,
the read config should be set to disable compression along with
the control register. Otherwise, the DEC400D cannot really leave
the decompressed mode. And the value '0x0' is suitable to be set
to read config register in this case.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
drivers/gpu/imx/dcss/dcss-dec400d.c

index 435cc77..639ed94 100644 (file)
@@ -118,6 +118,8 @@ void dcss_dec400d_bypass(struct dcss_soc *dcss)
        uint32_t control;
        struct dcss_dec400d_priv *dec400d = dcss->dec400d_priv;
 
+       dcss_dec400d_read_config(dcss, 0, false);
+
        control = dcss_readl(dec400d->dec400d_reg + DEC400D_CONTROL);
        pr_debug("%s: dec400d control = %#x\n", __func__, control);