zynqmp: Add bakery_lock to protect APU_PWRCTRL register access
authorStefan Krsmanovic <stefan.krsmanovic@aggios.com>
Fri, 20 May 2016 13:51:09 +0000 (15:51 +0200)
committerSoren Brinkmann <soren.brinkmann@xilinx.com>
Tue, 24 May 2016 17:18:07 +0000 (10:18 -0700)
commit03b8077309d9c55118737426c1e1e4bd99c7ae60
tree481f6c854f43f6a5d688347845b86834aeaa8049
parent8212f1f0ee9e99eaf2610d263f251380996bf9f3
zynqmp: Add bakery_lock to protect APU_PWRCTRL register access

Access to APU_PWRCTRL register is protected during suspend/wakeup pocedure
in order to save valid state. If more than one CPU is accessing this register
it can be left in corrupted state during read-modify-write process.

Signed-off-by: Stefan Krsmanovic <stefan.krsmanovic@aggios.com>
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
plat/xilinx/zynqmp/pm_service/pm_client.c