[PATCH v2] fpga: intel_sdm_mb: Add checking for INTEL_SIP_SMC_STATUS_BUSY (1)

dinesh.maniyam at intel.com dinesh.maniyam at intel.com
Mon May 30 06:30:22 CEST 2022


From: Dinesh Maniyam <dinesh.maniyam at intel.com>

Status busy means transfer is accepted but SDM does not have more freed
buffer. It is not an error. Continue process the data if receive OK or
BUSY status.

Signed-off-by: Ley Foon Tan <ley.foon.tan at intel.com>
Signed-off-by: Dinesh Maniyam <dinesh.maniyam at intel.com>

---

v1 -> v2
- change to "OK or Busy status in commit message and
  fix allignment error.
---
 drivers/fpga/intel_sdm_mb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/fpga/intel_sdm_mb.c b/drivers/fpga/intel_sdm_mb.c
index f5fd9a14c2..5e0b2777e0 100644
--- a/drivers/fpga/intel_sdm_mb.c
+++ b/drivers/fpga/intel_sdm_mb.c
@@ -70,7 +70,8 @@ static int send_bitstream(const void *rbf_data, size_t rbf_size)
 			debug("wr_ret = %d, rbf_data = %p, buf_size = %08lx\n",
 			      wr_ret, rbf_data, buf_size);

-			if (wr_ret)
+			if (wr_ret != INTEL_SIP_SMC_STATUS_OK &&
+				wr_ret != INTEL_SIP_SMC_STATUS_BUSY)
 				continue;

 			rbf_size -= buf_size;
--
2.25.1



More information about the U-Boot mailing list