ARM: tegra: only run PL310 init on systems with one
authorStephen Warren <swarren@nvidia.com>
Tue, 18 Feb 2014 23:51:58 +0000 (16:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 06:06:09 +0000 (22:06 -0800)
commitf6a19e4c5295259631f21c063dd92d616a724a11
tree68ce3ae12b04fb3d810df6b0b6ee09a578fbbadf
parentd15c4c3c6ed195480bb8ae6b3e48b8eb596a65ac
ARM: tegra: only run PL310 init on systems with one

commit 8859685785bfafadf9bc922dd3a2278e59886947 upstream.

Fix tegra_init_cache() to check whether the system has a PL310 cache
before touching the PL310 registers. This prevents access to non-existent
registers on Tegra114 and later.

Note for stable kernels:
In <= v3.12, the file to patch is arch/arm/mach-tegra/common.c.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-tegra/tegra.c