]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mailbox: zynqmp: Extend timeout for getting observation bit
authorMichal Simek <michal.simek@xilinx.com>
Mon, 5 Oct 2020 13:23:00 +0000 (15:23 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 27 Oct 2020 07:13:31 +0000 (08:13 +0100)
In case of fpga loading (which can be huge) 100ms is not enough. That's why
extend timeout 10 times to wait maximum 1s to get ACK back.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mailbox/zynqmp-ipi.c

index 9483ed9cefcf17b3e161086335dcf91a4ae615ee..847a03648b8a7c5aae52268e0b9964ac66d56c64 100644 (file)
@@ -56,7 +56,7 @@ static int zynqmp_ipi_send(struct mbox_chan *chan, const void *data)
 
        /* Wait until observation bit is cleared */
        ret = wait_for_bit_le32(&ipi_int_apu->obs, IPI_BIT_MASK_PMU0, false,
-                               100, false);
+                               1000, false);
 
        debug("%s, send %ld bytes\n", __func__, msg->len);
        return ret;