Fix broken standby state implementation in PSCI
authorAchin Gupta <achin.gupta@arm.com>
Fri, 9 May 2014 18:32:25 +0000 (19:32 +0100)
committerAchin Gupta <achin.gupta@arm.com>
Mon, 12 May 2014 17:13:54 +0000 (18:13 +0100)
commit317ba09021b90ef50c13a1c44b4d2091736b6a86
tree58622c4d74efcf77b11eb92178285a135a233620
parent60bc4bbd0bf705f30327e3c37973bcf1e1851110
Fix broken standby state implementation in PSCI

This patch fixes the broken support for entry into standby states
introduced under commit-id 'd118f9f864' (tf-issues#94). Upon exit from
the platform defined standby state instead of returning to the caller
of the SMC, execution would get stuck in the wfi instruction meant for
entering a power down state. This patch ensures that exit from a
standby state and entry into a power down state do not interfere with
each other.

Fixes ARM-software/tf-issues#154

Change-Id: I56e5df353368e44d6eefc94ffedefe21929f5cfe
include/bl31/services/psci.h
services/std_svc/psci/psci_entry.S
services/std_svc/psci/psci_main.c