]> git.baikalelectronics.ru Git - uboot.git/commit
tpm: sandbox: Change the return code when device is already open
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Sat, 18 Feb 2023 15:18:49 +0000 (17:18 +0200)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 28 Feb 2023 07:44:25 +0000 (09:44 +0200)
commitff59460e283451ed2017063a5c24f90b4c01f523
tree641dd11630245737ee3e48c8bd61248951eb2f80
parent033f258b14c2a0584ee784ef9e314c9835fe6129
tpm: sandbox: Change the return code when device is already open

All the TPM drivers as well as out TCG TIS API for a TPM2.0 device
return -EBUSY if the device has already been opened.  Adjust
the sandbox TPM do return the same error code.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/tpm/tpm2_tis_sandbox.c