]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerOlof Johansson <olof@lixom.net>
Wed, 19 Feb 2014 04:30:59 +0000 (20:30 -0800)
commitc3b58f18ce3751ad5bbd47c961dff6dd01dbf3fe
treecf73871e0e0ccb40547685edf64d0e7a43c81274
parentb1785b3f405b8f7d99143763d3bf3b12623ac589
ARM: tegra: only run PL310 init on systems with one

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.

Cc: <stable@vger.kernel.org> # v3.9+
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-tegra/tegra.c