From: Michal Simek Date: Mon, 5 Oct 2020 13:23:00 +0000 (+0200) Subject: mailbox: zynqmp: Extend timeout for getting observation bit X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=f08d0c51b5738fd36748b72a8a98108c7ee1cba0;p=u-boot.git mailbox: zynqmp: Extend timeout for getting observation bit 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 --- diff --git a/drivers/mailbox/zynqmp-ipi.c b/drivers/mailbox/zynqmp-ipi.c index 9483ed9cef..847a03648b 100644 --- a/drivers/mailbox/zynqmp-ipi.c +++ b/drivers/mailbox/zynqmp-ipi.c @@ -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;