mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 04:36:13 +02:00
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>
This commit is contained in:
parent
78fd2f54d5
commit
87bc11d5e2
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user