Skip to content
Snippets Groups Projects
Commit 87bc11d5 authored by Ilias Apalodimas's avatar Ilias Apalodimas
Browse files

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's avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
parent 78fd2f54
No related branches found
No related tags found
No related merge requests found
......@@ -810,7 +810,7 @@ static int sandbox_tpm2_open(struct udevice *dev)
struct sandbox_tpm2 *tpm = dev_get_priv(dev);
if (tpm->init_done)
return -EIO;
return -EBUSY;
tpm->init_done = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment