]> git.dujemihanovic.xyz Git - u-boot.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)
commit87bc11d5e2d79e8269206cc7fc96af896a46f983
tree641dd11630245737ee3e48c8bd61248951eb2f80
parent78fd2f54d5e1411b164a4757f5d8b307a3811eb5
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