Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fTPM: make sure TEE is initialized before fTPM
For built-in drivers, the order of initialization function invocation is determined by their link order. The original code linked TPM drivers before TEE driver when they were both built in. That caused fTPM's initialization to be deferred to a worker thread instead of running on PID 1. That is problematic because IMA's initialization routine, which runs on PID 1 as a late initcall, needs to have access to the default TPM instance. If fTPM's initialization is deferred, IMA will not be able to get hold of a TPM instance in time. Fix this by modifying Makefile to make sure TEE is initialized before fTPM when they are both built in. Signed-off-by: Wei Liu <wei.liu@kernel.org>
- Loading branch information