ARM: EXYNOS: Do not resume l2x0 if not enabled before suspend
authorTomasz Figa <t.figa@samsung.com>
Mon, 17 Mar 2014 22:28:09 +0000 (07:28 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Thu, 20 Mar 2014 19:04:42 +0000 (04:04 +0900)
commit61557b8bac9c80a5c14d237d420c246703e5c2e2
tree8d6ea839f96309abd1f453896f8ec7a46af7fdaf
parent8460dc7f2777d564b4cf094721e9de6e6657e11c
ARM: EXYNOS: Do not resume l2x0 if not enabled before suspend

Trying to resume l2x0 if it was not enabled before suspend leads to
system crash. This patch prevents this by checking if l2x0_regs_phys is
a valid pointer to l2x0 context data saved on initialization.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/plat-samsung/s5p-sleep.S