From 8787c0e00cfde59e81f6f89c84cef89d422cfabb Mon Sep 17 00:00:00 2001 From: Soren Brinkmann Date: Tue, 6 Sep 2016 16:29:07 -0700 Subject: [PATCH] zynqmp: Make MMIO write FW call synchronous We must guarantee that writes have become effective before returning to the caller. Hence, wait for PMUFW signaling completion of the FW call before returning to the rich OS. Signed-off-by: Soren Brinkmann --- plat/xilinx/zynqmp/pm_service/pm_api_sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/xilinx/zynqmp/pm_service/pm_api_sys.c b/plat/xilinx/zynqmp/pm_service/pm_api_sys.c index efadbd20..e859ee39 100644 --- a/plat/xilinx/zynqmp/pm_service/pm_api_sys.c +++ b/plat/xilinx/zynqmp/pm_service/pm_api_sys.c @@ -476,7 +476,7 @@ enum pm_ret_status pm_mmio_write(uintptr_t address, /* Send request to the PMU */ PM_PACK_PAYLOAD4(payload, PM_MMIO_WRITE, address, mask, value); - return pm_ipi_send(primary_proc, payload); + return pm_ipi_send_sync(primary_proc, payload, NULL); } /** -- 2.30.2