[PATCH] ARM: errata: Fix the workaround for erratum 764369

Vladimir Murzin murzin.v at gmail.com
Tue Apr 1 01:32:05 PDT 2014


Nitin Garg <nitin.garg <at> freescale.com> writes:
>  #ifdef CONFIG_ARM_ERRATA_764369
>  	/* Cortex-A9 only */
>  	if ((read_cpuid_id() & 0xff0ffff0) == 0x410fc090) {
> -		scu_ctrl = readl_relaxed(scu_base + 0x30);
> -		if (!(scu_ctrl & 1))
> -			writel_relaxed(scu_ctrl | 0x1, scu_base + 0x30);
> +		writel_relaxed(0x1, scu_base + 0x30);
>  	}
>  #endif
> 

Hmmm.. SCU diagnostic control register is undocumented one, afaics. Anyway,
writel_* is supposed to write u32, so writing plain 0x1 sets-off other
settings, doesn't it?

Vladimir





More information about the linux-arm-kernel mailing list