From: Soren Brinkmann Date: Tue, 6 Sep 2016 23:29:07 +0000 (-0700) Subject: zynqmp: Make MMIO write FW call synchronous X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=8787c0e00cfde59e81f6f89c84cef89d422cfabb;p=project%2Fbcm63xx%2Fatf.git 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 --- 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); } /**