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

Commit 966bfec0 authored by Asha Magadi Venkateshamurthy's avatar Asha Magadi Venkateshamurthy
Browse files

clk: qcom: rcg2: set default freq to clk_gfx3d_src



This is a fix to set clk_gfx3d_src rate to the frequency from the
frequency table as a default frequency.

Change-Id: Idc980a99db10a2b60fcd8e926db2f38c864a5358
Signed-off-by: default avatarAsha Magadi Venkateshamurthy <amagad@codeaurora.org>
parent 2b4c17be
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013, 2016-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013, 2016-2020, The Linux Foundation. All rights reserved.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
@@ -1471,7 +1471,7 @@ static int clk_gfx3d_src_determine_rate(struct clk_hw *hw,

	f = qcom_find_freq(rcg->freq_tbl, req->rate);
	if (!f || (req->rate != f->freq))
		return -EINVAL;
		req->rate = f->freq;

	/* Indexes of source from the parent map */
	p1 = clk_hw_get_parent_by_index(hw, 1);