Merge "soc: qcom: Register for indication cb after obtaining state of remote pd"
This commit is contained in:
commit
2bc49ab366
2 changed files with 8 additions and 9 deletions
|
@ -917,13 +917,13 @@ out:
|
|||
priv->region_start),
|
||||
VMID_HLOS);
|
||||
}
|
||||
if (desc->clear_fw_region && priv->region_start)
|
||||
pil_clear_segment(desc);
|
||||
dma_free_attrs(desc->dev, priv->region_size,
|
||||
priv->region, priv->region_start,
|
||||
&desc->attrs);
|
||||
priv->region = NULL;
|
||||
}
|
||||
if (desc->clear_fw_region && priv->region_start)
|
||||
pil_clear_segment(desc);
|
||||
pil_release_mmap(desc);
|
||||
}
|
||||
return ret;
|
||||
|
|
|
@ -376,13 +376,6 @@ static void root_service_service_arrive(struct work_struct *work)
|
|||
mutex_unlock(&qmi_client_release_lock);
|
||||
pr_info("Connection established between QMI handle and %d service\n",
|
||||
data->instance_id);
|
||||
/* Register for indication messages about service */
|
||||
rc = qmi_register_ind_cb(data->clnt_handle, root_service_service_ind_cb,
|
||||
(void *)data);
|
||||
if (rc < 0)
|
||||
pr_err("Indication callback register failed(instance-id: %d) rc:%d\n",
|
||||
data->instance_id, rc);
|
||||
|
||||
mutex_lock(¬if_add_lock);
|
||||
mutex_lock(&service_list_lock);
|
||||
list_for_each_entry(service_notif, &service_list, list) {
|
||||
|
@ -405,6 +398,12 @@ static void root_service_service_arrive(struct work_struct *work)
|
|||
}
|
||||
mutex_unlock(&service_list_lock);
|
||||
mutex_unlock(¬if_add_lock);
|
||||
/* Register for indication messages about service */
|
||||
rc = qmi_register_ind_cb(data->clnt_handle,
|
||||
root_service_service_ind_cb, (void *)data);
|
||||
if (rc < 0)
|
||||
pr_err("Indication callback register failed(instance-id: %d) rc:%d\n",
|
||||
data->instance_id, rc);
|
||||
}
|
||||
|
||||
static void root_service_service_exit(struct qmi_client_info *data,
|
||||
|
|
Loading…
Add table
Reference in a new issue