Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1217461

Re: [PATCH 3/3] cpufreq: dt: Tolerance applies on both sides of target voltage

From Viresh Kumar <viresh.kumar@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 3/3] cpufreq: dt: Tolerance applies on both sides of target voltage
Date 2015-09-02 11:50 +0200
Message-ID <q4cQ2-1iy-23@gated-at.bofh.it> (permalink)
References <q4cdj-zo-5@gated-at.bofh.it> <q4cdj-zo-3@gated-at.bofh.it> <q4cGo-17b-43@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 02-09-15, 11:39, Lucas Stach wrote:
> Am Mittwoch, den 02.09.2015, 14:36 +0530 schrieb Viresh Kumar:
> > Tolerance applies on both sides of the target voltage, i.e. both min and
> > max sides.
> 
> While I'm not really comfortable with the above, it is exactly how OPPv1
> and the voltage tolerance property are specified.
> 
> Reviewed-by: Lucas Stach <l.stach@pengutronix.de>

Thanks.

And this is exactly how the regulator API work:

static inline int regulator_set_voltage_tol(struct regulator *regulator,
					    int new_uV, int tol_uV)
{
	if (regulator_set_voltage(regulator, new_uV, new_uV + tol_uV) == 0)
		return 0;
	else
		return regulator_set_voltage(regulator,
					     new_uV - tol_uV, new_uV + tol_uV);
}



But yeah, OPP-v2 is going to take care of this with target/min/max
values..

-- 
viresh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 3/3] cpufreq: dt: Tolerance applies on both sides of target voltage Viresh Kumar <viresh.kumar@linaro.org> - 2015-09-02 11:10 +0200
  Re: [PATCH 3/3] cpufreq: dt: Tolerance applies on both sides of  target voltage Lucas Stach <l.stach@pengutronix.de> - 2015-09-02 11:40 +0200
    Re: [PATCH 3/3] cpufreq: dt: Tolerance applies on both sides of  target voltage Viresh Kumar <viresh.kumar@linaro.org> - 2015-09-02 11:50 +0200

csiph-web