On Tue, Dec 10, 2019 at 10:32:12AM +0530, Sumit Garg wrote:
On Mon, 9 Dec 2019 at 20:29, Ard Biesheuvel ardb@kernel.org wrote:
To simplify adding ACPI support to the OP-TEE driver, model it as a platform driver. This will permit us to use the generic device property layer for parsing additional properties, regardless of whether DT or ACPI is being used.
Note that this change will result in the OP-TEE driver to be loaded automatically on systems that advertise the presence of OP-TEE via the device tree.
Signed-off-by: Ard Biesheuvel ardb@kernel.org
v3: Reshuffle the code a bit to make it apply to v5.5-rc1. Note that this puts the call to optee_enumerate_devices() back into the .probe() routine, as the init routine is being removed.
drivers/tee/optee/core.c | 153 ++++++++------------ 1 file changed, 64 insertions(+), 89 deletions(-)
Acked-by: Sumit Garg sumit.garg@linaro.org
Looks good, I'm picking this up for v5.6.
Thanks, Jens