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

Commit 7179622c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qcom: clock: Allow VDD handoff to be optional"

parents 3981d134 c5be8b74
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -673,6 +673,9 @@ static void vdd_class_init(struct clk_vdd_class *vdd)
	if (!vdd)
		return;

	if (vdd->skip_handoff)
		return;

	list_for_each_entry(v, &handoff_vdd_list, list) {
		if (v->vdd_class == vdd)
			return;
+2 −0
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@ static inline void clk_debug_print_hw(struct clk *clk, struct seq_file *f) {}
		regulator. Optional parameter.
 * @level_votes: array of votes for each level.
 * @num_levels: specifies the size of level_votes array.
 * @skip_handoff: do not vote for the max possible voltage during init
 * @cur_level: the currently set voltage level
 * @lock: lock to protect this struct
 */
@@ -84,6 +85,7 @@ struct clk_vdd_class {
	int *vdd_ua;
	int *level_votes;
	int num_levels;
	bool skip_handoff;
	unsigned long cur_level;
	struct mutex lock;
};