mirror of https://github.com/wolfSSL/wolfTPM.git
F-13459 - End the U-Boot SPI transaction after a failed header transfer
parent
1677ed284a
commit
ace1fea64e
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue