[PATCH 0/3] Add alarm operation to the rtc-optee driver

From: Clément Le Goffic
Date: Tue Jul 15 2025 - 10:26:47 EST


The optee-rtc driver is used to query the rtc handled by OP-TEE OS
through PTA (Pseudo Trusted Application) call.
This serie fixes memory concerns and add alarm operations for the
rtc-optee driver as the RTC PTA now support them [1].

For the alarm notification, the OP-TEE OS secure world will be
able to inform the kernel when a secured alarm will occured
through a notification sent to a kernel thread waiting in OP-TEE OS.

[1]: https://github.com/OP-TEE/optee_os/pull/7440

Signed-off-by: Clément Le Goffic <clement.legoffic@xxxxxxxxxxx>
---
Clément Le Goffic (3):
rtc: rtc-optee: fix memory leak on driver removal
rtc: optee: remove unnecessary memory operations
rtc: optee: add alarm related rtc ops to optee rtc driver

drivers/rtc/rtc-optee.c | 464 ++++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 426 insertions(+), 38 deletions(-)
---
base-commit: 155a3c003e555a7300d156a5252c004c392ec6b0
change-id: 20250224-upstream-optee-rtc-0cf0b9f45351

Best regards,
--
Clément Le Goffic <clement.legoffic@xxxxxxxxxxx>