OP-TEE Asynchronous notifications from secure world Adds support in the SMC based OP-TEE driver to receive asynchronous notifications from secure world using an edge-triggered interrupt as delivery mechanism. * tag 'optee-async-notif-for-v5.17' of https://git.linaro.org/people/jens.wiklander/linux-tee: optee: Fix NULL but dereferenced coccicheck error optee: add asynchronous notifications optee: separate notification functions tee: export teedev_open() and teedev_close_context() tee: fix put order in teedev_close_context() dt-bindings: arm: optee: add interrupt property docs: staging/tee.rst: add a section on OP-TEE notifications
Showing the changes to include (1 of 14 files). Show all
Unified · Split
| @@ -587,4 +587,18 @@ struct tee_client_driver { · 586 unmodified lines | ||
| 587 | 587 | #define to_tee_client_driver(d) \ |
| 588 | 588 | container_of(d, struct tee_client_driver, driver) |
| 589 | 589 | |
| 590 | +/** | |
| 591 | + * teedev_open() - Open a struct tee_device | |
| 592 | + * @teedev: Device to open | |
| 593 | + * | |
| 594 | + * @return a pointer to struct tee_context on success or an ERR_PTR on failure. | |
| 595 | + */ | |
| 596 | +struct tee_context *teedev_open(struct tee_device *teedev); | |
| 597 | + | |
| 598 | +/** | |
| 599 | + * teedev_close_context() - closes a struct tee_context | |
| 600 | + * @ctx: The struct tee_context to close | |
| 601 | + */ | |
| 602 | +void teedev_close_context(struct tee_context *ctx); | |
| 603 | + | |
| 590 | 604 | #endif /*__TEE_DRV_H*/ |