]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 5 Nov 2018 18:41:25 +0000 (10:41 -0800)
commitb36e426d8268853de3506e9059b5c3701b91109a
tree70d7e33ae360d663e67b2a96166e514960c3edf0
parentf630c74755763954e46ada22cb887770a3c4fdd4
soc: bcm: brcmstb: Fix re-entry point with a THUMB2_KERNEL

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: 275e9baf1087 ("soc: bcm: brcmstb: Add support for S2/S3/S5 suspend states (ARM)")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/soc/bcm/brcmstb/pm/pm-arm.c