ARM: sunxi: Fix CPU powerdown on A83T
authorOndrej Jirman <megous@megous.com>
Mon, 28 Oct 2019 21:49:14 +0000 (22:49 +0100)
committerMaxime Ripard <mripard@kernel.org>
Tue, 29 Oct 2019 08:09:56 +0000 (09:09 +0100)
commite690053e97e7a9c968df9a97cef9089dfa8e6a44
tree086ceb8d99d5c88a8100ded0332b068909a76504
parente614f341253f8541baf0230a8dc6a016b544b1e2
ARM: sunxi: Fix CPU powerdown on A83T

PRCM_PWROFF_GATING_REG has CPU0 at bit 4 on A83T. So without this
patch, instead of gating the CPU0, the whole cluster was power gated,
when shutting down first CPU in the cluster.

Fixes: 6961275e72a8c1 ("ARM: sun8i: smp: Add support for A83T")
Signed-off-by: Ondrej Jirman <megous@megous.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Cc: stable@vger.kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
arch/arm/mach-sunxi/mc_smp.c