From: Chee Hong Ang <chee.hong.ang@intel.com>
To: u-boot@lists.denx.de
Subject: [PATCH v1 2/3] fpga: intel_sdm_mb: Add watchdog reset
Date: Fri, 7 Aug 2020 11:50:04 +0800 [thread overview]
Message-ID: <20200807035005.73459-3-chee.hong.ang@intel.com> (raw)
In-Reply-To: <20200807035005.73459-1-chee.hong.ang@intel.com>
Ensure watchdog reset is not triggered if the fpga
reconfiguration is taking too long.
Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com>
---
drivers/fpga/intel_sdm_mb.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/fpga/intel_sdm_mb.c b/drivers/fpga/intel_sdm_mb.c
index 3508231191..9a1dc2c0c8 100644
--- a/drivers/fpga/intel_sdm_mb.c
+++ b/drivers/fpga/intel_sdm_mb.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <altera.h>
#include <log.h>
+#include <watchdog.h>
#include <asm/arch/mailbox_s10.h>
#include <linux/delay.h>
@@ -113,6 +114,7 @@ static int reconfig_status_polling_resp(void)
puts(".");
udelay(RECONFIG_STATUS_INTERVAL_DELAY_US);
+ WATCHDOG_RESET();
}
return -ETIMEDOUT;
@@ -238,6 +240,7 @@ static int send_reconfig_data(const void *rbf_data, size_t rbf_size,
if (resp_err && !xfer_count)
return resp_err;
}
+ WATCHDOG_RESET();
}
return 0;
--
2.13.0
next prev parent reply other threads:[~2020-08-07 3:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-07 3:50 [PATCH v1 0/3] Rename Stratix10 FPGA driver and support Agilex Chee Hong Ang
2020-08-07 3:50 ` [PATCH v1 1/3] fpga: altera: Rename Stratix10 FPGA to Intel FPGA SDM Mailbox Chee Hong Ang
2020-08-11 2:08 ` Tan, Ley Foon
2020-08-07 3:50 ` Chee Hong Ang [this message]
2020-08-11 2:09 ` [PATCH v1 2/3] fpga: intel_sdm_mb: Add watchdog reset Tan, Ley Foon
2020-08-07 3:50 ` [PATCH v1 3/3] arm: socfpga: agilex: Enable FPGA Full Reconfiguration support Chee Hong Ang
2020-08-11 2:06 ` Tan, Ley Foon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200807035005.73459-3-chee.hong.ang@intel.com \
--to=chee.hong.ang@intel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox