From: Chee Hong Ang Date: Fri, 7 Aug 2020 03:50:04 +0000 (+0800) Subject: fpga: intel_sdm_mb: Add watchdog reset X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=9a623cd6963fb37b62bd2e0e9e70b63552b0f288;p=u-boot.git fpga: intel_sdm_mb: Add watchdog reset Ensure watchdog reset is not triggered if the fpga reconfiguration is taking too long. Signed-off-by: Chee Hong Ang Reviewed-by: Ley Foon Tan --- 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 #include #include +#include #include #include @@ -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;