On Tue, Mar 8, 2022 at 2:36 PM Clément Léger <clement.leger@xxxxxxxxxxx> wrote: > > This drivers allows to communicate with a RTC PTA handled by OP-TEE [1]. > This PTA allows to query RTC information, set/get time and set/get > offset depending on the supported features. > > [1] https://github.com/OP-TEE/optee_os/pull/5179 > > Signed-off-by: Clément Léger <clement.leger@xxxxxxxxxxx> > --- > > Changes in v4: > - Remove error prints except the ones in probe > > Changes in v3 (was resent as a second v2 due to a mistake); > - Fix error messages to include ret value and fix wrong IOCTL names > - Use 100 columns char limit > > Changes in v2: > - Rebased over tee-shm-for-v5.18 > - Switch to tee_shm_alloc_kernel_buf() > - Use export_uuid() to copy uuid > - Fix warnings reported by checkpatch > - Free SHM in error exit path > > MAINTAINERS | 6 + > drivers/rtc/Kconfig | 10 ++ > drivers/rtc/Makefile | 1 + > drivers/rtc/rtc-optee.c | 362 ++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 379 insertions(+) > create mode 100644 drivers/rtc/rtc-optee.c Reviewed-by: Jens Wiklander <jens.wiklander@xxxxxxxxxx>