if (reason != VCHI_CALLBACK_MSG_AVAILABLE)
return;
- status = vchi_msg_hold(instance->service, (void **)&m, &size,
- VCHI_FLAGS_NONE, &handle);
+ status = vchi_msg_hold(instance->service, (void **)&m, &size, &handle);
if (status)
return;
extern int32_t vchi_msg_hold(struct vchi_service *service,
void **data, // } may be NULL, as info can be
uint32_t *msg_size, // } obtained from HELD_MSG_T
- enum vchi_flags flags,
struct vchi_held_msg *message_descriptor);
/*******************************************************************************
* Arguments: struct vchi_service *service,
* void **data,
* uint32_t *msg_size,
- * enum vchi_flags flags,
* struct vchi_held_msg *message_handle
*
* Description: Routine to return a pointer to the current message (to allow
*
***********************************************************/
int32_t vchi_msg_hold(struct vchi_service *service, void **data,
- uint32_t *msg_size, enum vchi_flags flags,
- struct vchi_held_msg *message_handle)
+ uint32_t *msg_size, struct vchi_held_msg *message_handle)
{
struct vchiq_header *header;
- WARN_ON((flags != VCHI_FLAGS_NONE) &&
- (flags != VCHI_FLAGS_BLOCK_UNTIL_OP_COMPLETE));
-
- if (flags == VCHI_FLAGS_NONE)
- if (vchiu_queue_is_empty(&service->queue))
- return -1;
+ if (vchiu_queue_is_empty(&service->queue))
+ return -1;
header = vchiu_queue_pop(&service->queue);
switch (reason) {
case VCHI_CALLBACK_MSG_AVAILABLE:
status = vchi_msg_hold(instance->service, (void **)&msg,
- &msg_len, VCHI_FLAGS_NONE, &msg_handle);
+ &msg_len, &msg_handle);
if (status) {
pr_err("Unable to dequeue a message (%d)\n", status);
break;