From 525a2fe19a1573ab8005d1c0b5e8da7a0264cd10 Mon Sep 17 00:00:00 2001 From: Pravin Kumar Ravi Date: Wed, 15 Feb 2023 18:22:46 -0800 Subject: [PATCH] synx: adding a macro for invalid synx handle In use cases where some buffers are passed without a synx handle, the client needs to define an additional parameter to indicate whether the h_synx field is valid. This adds to the command size. Assigning h_synx=SYNX_INVALID_HANDLE can avoid this. Change-Id: Ibf9dcf9641236ab2ad4c106904f3f17c879486bf Signed-off-by: Pravin Kumar Ravi --- msm/synx/synx_api.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/msm/synx/synx_api.h b/msm/synx/synx_api.h index 0c2cd78a1f..09a36d0003 100644 --- a/msm/synx/synx_api.h +++ b/msm/synx/synx_api.h @@ -14,6 +14,12 @@ #define SYNX_NO_TIMEOUT ((u64)-1) +/** + * SYNX_INVALID_HANDLE : client can assign the synx handle variable with this value + * when it doesn't hold a valid synx handle + */ +#define SYNX_INVALID_HANDLE 0 + /** * enum synx_create_flags - Flags passed during synx_create call *