OSDN Git Service

tee: amdtee: check TEE status during driver initialization
authorRijo Thomas <Rijo-john.Thomas@amd.com>
Fri, 27 Dec 2019 05:24:02 +0000 (10:54 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 4 Jan 2020 05:49:51 +0000 (13:49 +0800)
commitbade7e1fbd34f46462e6eb1db5474832a4144ac2
treec3c35b39cf2bdc10b841bc0ca21df3844ca74f09
parent757cc3e9ff1d72d014096399d6e2bf03974d9da1
tee: amdtee: check TEE status during driver initialization

The AMD-TEE driver should check if TEE is available before
registering itself with TEE subsystem. This ensures that
there is a TEE which the driver can talk to before proceeding
with tee device node allocation.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Co-developed-by: Devaraj Rangasamy <Devaraj.Rangasamy@amd.com>
Signed-off-by: Devaraj Rangasamy <Devaraj.Rangasamy@amd.com>
Signed-off-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Reviewed-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/tee-dev.c
drivers/tee/amdtee/core.c
include/linux/psp-tee.h