diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2018-09-27 21:27:11 +0200 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2018-11-05 19:41:25 +0100 |
commit | fb14ada11d62fb849fc357a25ef8016ba438ba10 (patch) | |
tree | 70d7e33ae360d663e67b2a96166e514960c3edf0 /drivers/soc/bcm | |
parent | Linux 4.20-rc1 (diff) | |
download | linux-fb14ada11d62fb849fc357a25ef8016ba438ba10.tar.xz linux-fb14ada11d62fb849fc357a25ef8016ba438ba10.zip |
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: 0b741b8234c8 ("soc: bcm: brcmstb: Add support for S2/S3/S5 suspend states (ARM)")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'drivers/soc/bcm')
-rw-r--r-- | drivers/soc/bcm/brcmstb/pm/pm-arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/bcm/brcmstb/pm/pm-arm.c b/drivers/soc/bcm/brcmstb/pm/pm-arm.c index a5577dd5eb08..8ee06347447c 100644 --- a/drivers/soc/bcm/brcmstb/pm/pm-arm.c +++ b/drivers/soc/bcm/brcmstb/pm/pm-arm.c @@ -404,7 +404,7 @@ noinline int brcmstb_pm_s3_finish(void) { struct brcmstb_s3_params *params = ctrl.s3_params; dma_addr_t params_pa = ctrl.s3_params_pa; - phys_addr_t reentry = virt_to_phys(&cpu_resume); + phys_addr_t reentry = virt_to_phys(&cpu_resume_arm); enum bsp_initiate_command cmd; u32 flags; |