F-13459 - End the U-Boot SPI transaction after a failed header transfer

pull/599/head
Aidan Garske 2026-09-08 11:27:51 -07:00
parent 1677ed284a
commit ace1fea64e
1 changed files with 4 additions and 0 deletions

View File

@ -148,6 +148,10 @@
#ifdef DEBUG_WOLFTPM
printf("wolfTPM: SPI header xfer failed: %d\n", ret);
#endif
/* End the transaction so a driver that holds CS does not leave
* it active for the next request */
spi_xfer(g_spi_slave, 0, NULL, NULL, SPI_XFER_END);
ret = TPM_RC_FAILURE;
goto cleanup;
}