zynqmp: Make MMIO write FW call synchronous
authorSoren Brinkmann <[email protected]>
Tue, 6 Sep 2016 23:29:07 +0000 (16:29 -0700)
committerSoren Brinkmann <[email protected]>
Tue, 13 Sep 2016 16:19:03 +0000 (09:19 -0700)
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 <[email protected]>
plat/xilinx/zynqmp/pm_service/pm_api_sys.c

index efadbd200ee19346b0337ab2227ae41ea21df027..e859ee39ee18afe9ea7c4fe06e332187be656809 100644 (file)
@@ -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);
 }
 
 /**