hw/misc/imx6_src: defer clearing of SRC_SCR reset bits
commit4881658a4bf6dc5335e5033d0916b2e86687463d
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 23 Feb 2017 18:29:26 +0000 (23 18:29 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 24 Feb 2017 10:32:46 +0000 (24 10:32 +0000)
tree3249469a4df1c5be773ff86236f46679504ba528
parenta67cf2772733e0ff40ed14cfed9e177b050c22a7
hw/misc/imx6_src: defer clearing of SRC_SCR reset bits

The arm_reset_cpu/set_cpu_on/set_cpu_off() functions do their work
asynchronously in the target vCPUs context. As a result we need to
ensure the SRC_SCR reset bits correctly report the reset status at the
right time. To do this we defer the clearing of the bit with an async
job which will run after the work queued by ARM powerctl functions.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/imx6_src.c