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

Commit b5aa0ba5 authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

msm: vidc: ensure minimum bus vote during sessions



If all video sessions are closed but venus firmware is
not unloaded yet then power_on function is not ensuring
to vote for minimum bus frequency leading to bus transaction
failures. This change will ensure minimum bus voting in
all scenarios.

Change-Id: I55b3796ae5936f757e1c0f94257011f680976179
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent a697a17d
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -852,8 +852,8 @@ static int __vote_buses(struct venus_hfi_device *device,
	struct vidc_bus_vote_data *new_data = NULL;

	if (!num_data) {
		/* Meh nothing to do */
		return 0;
		dprintk(VIDC_DBG, "No vote data available\n");
		goto no_data_count;
	} else if (!data) {
		dprintk(VIDC_ERR, "Invalid voting data\n");
		return -EINVAL;
@@ -866,6 +866,7 @@ static int __vote_buses(struct venus_hfi_device *device,
		goto err_no_mem;
	}

no_data_count:
	kfree(device->bus_vote.data);
	device->bus_vote.data = new_data;
	device->bus_vote.data_count = num_data;