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

Commit 6596f6e8 authored by Deepak Katragadda's avatar Deepak Katragadda Committed by David Collins
Browse files

clk: msm: clock: Decouple PLL min frequency from being fabia specific



Currently, the min_supported_rate is only used for fabia PLLs.
This is a generic PLL property which needs to be checked for
all PLLs.

Change-Id: Iaec2ee84468bb40a68ded9355aa7587eabbe86b9
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 5b6a50f9
Loading
Loading
Loading
Loading
+5 −5
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
@@ -629,11 +629,11 @@ static long alpha_pll_round_rate(struct clk *c, unsigned long rate)
		return -EINVAL;

	freq_hz = round_rate_up(pll, rate, &l_val, &a_val);
	if (pll->is_fabia) {
	if (rate < pll->min_supported_freq)
		return pll->min_supported_freq;
	if (pll->is_fabia)
		return freq_hz;
	}

	ret = find_vco(pll, freq_hz);
	if (!IS_ERR_VALUE(ret))
		return freq_hz;