Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49fac36c authored by David Dai's avatar David Dai Committed by Gerrit - the friendly Code Review server
Browse files

msm: msm_bus: Change RPMH call names



Change RPMH function calls to match new names from passthru
to batch, also some compiliation fixes.

Change-Id: Idbee6c98c0716e4c88e362878c31c6a2409ec1a6
Signed-off-by: default avatarDavid Dai <daidavid1@codeaurora.org>
parent ac6fe6e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -417,6 +417,7 @@ static int getpath(struct device *src_dev, int dest, const char *cl_name)

	while ((!found && !list_empty(&traverse_list))) {
		struct msm_bus_node_device_type *bus_node = NULL;
		unsigned int i;
		/* Locate dest_id in the traverse list */
		list_for_each_entry(bus_node, &traverse_list, link) {
			if (bus_node->node_info->id == dest) {
@@ -425,7 +426,6 @@ static int getpath(struct device *src_dev, int dest, const char *cl_name)
			}
		}

		unsigned int i;
		/* Setup the new edge list */
		list_for_each_entry(bus_node, &traverse_list, link) {
			/* Setup list of black-listed nodes */
+0 −1
Original line number Diff line number Diff line
@@ -554,7 +554,6 @@ static ssize_t msm_bus_dbg_update_request_write(struct file *file,
	list_for_each_entry(cldata, &cl_list, list) {
		if (strnstr(chid, cldata->pdata->name, cnt)) {
			found = 1;
			cldata = cldata;
			strsep(&chid, " ");
			if (chid) {
				ret = kstrtoul(chid, 10, &index);
+3 −3
Original line number Diff line number Diff line
@@ -609,20 +609,20 @@ int msm_bus_commit_data(struct list_head *clist)
		ret = rpmh_write(cur_mbox, cur_rsc->rscdev->req_state,
						cmdlist_active, cnt_active);
	else
		ret = rpmh_write_passthru(cur_mbox, cur_rsc->rscdev->req_state,
		ret = rpmh_write_batch(cur_mbox, cur_rsc->rscdev->req_state,
						cmdlist_active, n_active);
	if (ret)
		MSM_BUS_ERR("%s: error sending active/awake sets: %d\n",
						__func__, ret);


	ret = rpmh_write_passthru(cur_mbox, RPMH_WAKE_ONLY_STATE,
	ret = rpmh_write_batch(cur_mbox, RPMH_WAKE_ONLY_STATE,
						cmdlist_wake, n_wake);
	if (ret)
		MSM_BUS_ERR("%s: error sending wake sets: %d\n",
						__func__, ret);

	ret = rpmh_write_passthru(cur_mbox, RPMH_SLEEP_STATE,
	ret = rpmh_write_batch(cur_mbox, RPMH_SLEEP_STATE,
						cmdlist_sleep, n_sleep);
	if (ret)
		MSM_BUS_ERR("%s: error sending sleep sets: %d\n",