drivers: fpga: intel_sdm_mb: Add checking for INTEL_SIP_SMC_STATUS_BUSY
PATCH 1/1 drivers: fpga: intel_sdm_mb: Add checking for INTEL_SIP_SMC_STATUS_BUSY
From: Ley Foon Tan <[email protected]>
Add checking for INTEL_SIP_SMC_STATUS_BUSY (1).
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 and BUSY status.
Signed-off-by Ley Foon Tan <[email protected]>
Signed-off-by Jit Loon Lim <[email protected]>
--- drivers/fpga/intel_sdm_mb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/fpga/intel_sdm_mb.c +2 -1
@@ -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;
Signature · 1 line
2.26.2