mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-06 07:17:01 +02:00
drivers: fpga: intel_sdm_mb: Check SIP SMC status in send_bitstream()
While sending bitstream via SIP SMC, busy status received does not correspond to error, instead it means transfer is accepted but SDM doesn't have any more free buffer space. Hence, data transmission is continued when busy status is received. Signed-off-by: Naresh Kumar Ravulapalli <nareshkumar.ravulapalli@altera.com> Link: https://lore.kernel.org/r/20250701044311.3670-1-nareshkumar.ravulapalli@altera.com Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
parent
14f627bf43
commit
a988d4ea00
@ -687,7 +687,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;
|
||||
|
Loading…
Reference in New Issue
Block a user