synx: Propagating changes from msm-5.10
Includes async_wait(timeout) and other fixes Change-Id: I46871f7fd343287cbd7f9e6ec48efc8ef5ce049a Signed-off-by: Pravin Kumar Ravi <quic_pravinku@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
d120b83d98
commit
9040173668
@@ -799,6 +799,9 @@ int synx_async_wait(struct synx_session *session,
|
|||||||
if (IS_ERR_OR_NULL(session) || IS_ERR_OR_NULL(params))
|
if (IS_ERR_OR_NULL(session) || IS_ERR_OR_NULL(params))
|
||||||
return -SYNX_INVALID;
|
return -SYNX_INVALID;
|
||||||
|
|
||||||
|
if (params->timeout_ms != SYNX_NO_TIMEOUT)
|
||||||
|
return -SYNX_NOSUPPORT;
|
||||||
|
|
||||||
client = synx_get_client(session);
|
client = synx_get_client(session);
|
||||||
if (IS_ERR_OR_NULL(client))
|
if (IS_ERR_OR_NULL(client))
|
||||||
return -SYNX_INVALID;
|
return -SYNX_INVALID;
|
||||||
@@ -2061,6 +2064,7 @@ static int synx_handle_async_wait(
|
|||||||
params.h_synx = user_data.synx_obj;
|
params.h_synx = user_data.synx_obj;
|
||||||
params.cb_func = synx_util_default_user_callback;
|
params.cb_func = synx_util_default_user_callback;
|
||||||
params.userdata = (void *)user_data.payload[0];
|
params.userdata = (void *)user_data.payload[0];
|
||||||
|
params.timeout_ms = user_data.payload[2];
|
||||||
|
|
||||||
rc = synx_async_wait(session, ¶ms);
|
rc = synx_async_wait(session, ¶ms);
|
||||||
if (rc)
|
if (rc)
|
||||||
|
Reference in New Issue
Block a user