]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:18 +0000 (14:21 -0300)
commite9b20448eace4049a8867782ba5547c5687e7e3f
tree7ef29e0ebab4f3a6cecad6c8d43db21dafa61aa1
parent107d096364d7d505473a018a8c1614efa290fd95
soc: bcm: brcmstb: Fix re-entry point with a THUMB2_KERNEL

BugLink: https://bugs.launchpad.net/bugs/1854975
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/soc/bcm/brcmstb/pm/pm-arm.c