sh_mobile_meram: Reset ICBs at unregistration time
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 31 Aug 2011 11:00:52 +0000 (13:00 +0200)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 5 Sep 2011 16:37:13 +0000 (16:37 +0000)
When ICBs are unregistered and later reused they need to be reset to
avoid data corruption. Set the WBF, WF and RF bits to make sure ICBs get
reset properly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/sh_mobile_meram.c

index f632970991939900636fc44b94734a18a80072e4..4d63490209cdf1431430aa343a513d29e11ba846 100644 (file)
@@ -373,8 +373,10 @@ static void meram_deinit(struct sh_mobile_meram_priv *priv,
                        struct sh_mobile_meram_icb *icb)
 {
        /* disable ICB */
-       meram_write_icb(priv->base, icb->cache_icb,  MExxCTL, 0);
-       meram_write_icb(priv->base, icb->marker_icb, MExxCTL, 0);
+       meram_write_icb(priv->base, icb->cache_icb,  MExxCTL,
+                       MExxCTL_WBF | MExxCTL_WF | MExxCTL_RF);
+       meram_write_icb(priv->base, icb->marker_icb, MExxCTL,
+                       MExxCTL_WBF | MExxCTL_WF | MExxCTL_RF);
        icb->cache_unit = 0;
 }
 
This page took 0.027034 seconds and 5 git commands to generate.