soc: bcm: brcmstb: Fix re-entry point with a THUMB2_KERNEL
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 27 Sep 2018 19:27:11 +0000 (12:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:17:17 +0000 (09:17 +0100)
commit5dc441fbef91a8d05c0917942692d3c06d255e73
tree87c13d33113405bd4cc10bdd43a9b210fa643837
parent9cdfff0a5e61b0eed6f8a81f178939f06dc5b65b
soc: bcm: brcmstb: Fix re-entry point with a THUMB2_KERNEL

[ Upstream commit fb14ada11d62fb849fc357a25ef8016ba438ba10 ]

When the kernel is built with CONFIG_THUMB2_KERNEL we would set the
kernel's resume entry point to be a function that is already built as
Thumb-2 code while the boot agent doing the resume is in ARM mode, so
this does not work. There is a header label defined: cpu_resume_arm
which we can use to do the switching for us.

Fixes: 0b741b8234c8 ("soc: bcm: brcmstb: Add support for S2/S3/S5 suspend states (ARM)")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/bcm/brcmstb/pm/pm-arm.c