]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
soc: bcm: brcmstb: biuctrl: Register writes require a barrier
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 12 Apr 2019 17:15:26 +0000 (10:15 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 20 May 2019 16:27:50 +0000 (09:27 -0700)
The BIUCTRL register writes require that a data barrier be inserted
after comitting the write to the register for the block to latch in the
recently written values. Reads have no such requirement and are not
changed.

Fixes: 34642650e5bc ("soc: Move brcmstb to bcm/brcmstb")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/soc/bcm/brcmstb/biuctrl.c

index c16273b31b94f689eb32956a9b907134beb38b01..20b63bee5b09fefb3d1339799f138e5135f051f5 100644 (file)
@@ -56,7 +56,7 @@ static inline void cbc_writel(u32 val, int reg)
        if (offset == -1)
                return;
 
-       writel_relaxed(val,  cpubiuctrl_base + offset);
+       writel(val, cpubiuctrl_base + offset);
 }
 
 enum cpubiuctrl_regs {