optee: use uuid for sysfs driver entry
authorMaxim Uvarov <maxim.uvarov@linaro.org>
Thu, 18 Jun 2020 13:52:49 +0000 (16:52 +0300)
committerJens Wiklander <jens.wiklander@linaro.org>
Fri, 10 Jul 2020 07:41:48 +0000 (09:41 +0200)
commit58df195cd47d9b06c7160253d35881c1de90aa9e
treeceb3aa65464c45803d5c8d0ae67bc205dc096003
parent3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
optee: use uuid for sysfs driver entry

With the evolving use-cases for TEE bus, now it's required to support
multi-stage enumeration process. But using a simple index doesn't
suffice this requirement and instead leads to duplicate sysfs entries.
So instead switch to use more informative device UUID for sysfs entry
like:
/sys/bus/tee/devices/optee-ta-<uuid>

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Documentation/ABI/testing/sysfs-bus-optee-devices [new file with mode: 0644]
MAINTAINERS
drivers/tee/optee/device.c