Re: [RFC v2 1/4] power: asv: Add common ASV support for Samsung SoCs

2013-12-26 Thread Yadwinder Singh Brar
Hi Tomasz, Sorry for being late. On Sun, Dec 15, 2013 at 10:51 PM, Tomasz Figa wrote: > On Sunday 15 of December 2013 22:30:13 Yadwinder Singh Brar wrote: > [snip] >> >> + >> >> + return NULL; >> >> +} >> >> + >> >> +unsigned int asv_get_volt(enum asv_type_id target_type, >> >> +

Re: [RFC v2 1/4] power: asv: Add common ASV support for Samsung SoCs

2013-12-15 Thread Tomasz Figa
On Sunday 15 of December 2013 22:30:13 Yadwinder Singh Brar wrote: [snip] > >> + > >> + return NULL; > >> +} > >> + > >> +unsigned int asv_get_volt(enum asv_type_id target_type, > >> + unsigned int target_freq) > > > > Do you need this function at all

Re: [RFC v2 1/4] power: asv: Add common ASV support for Samsung SoCs

2013-12-15 Thread Yadwinder Singh Brar
Hi Tomasz, Thanks for your thorough review and nice suggestions. [snip] >> +} >> + >> +static struct asv_member *asv_get_mem(enum asv_type_id asv_type) > > I don't really like this enum based look-up. It's hard to define an enum > that covers any possible existing and future platforms that would

Re: [RFC v2 1/4] power: asv: Add common ASV support for Samsung SoCs

2013-12-15 Thread Yadwinder Singh Brar
Hi Abhilash, [ ... ] >> + * @nr_dvfs_level: Number of dvfs levels supported by member. >> + * @dvfs_table: Table containing supported ASV freqs and corresponding >> volts. >> + * @asv_grp: ASV group of member. >> + * @flags: ASV flags > What are the ASV flags you had in mind ? Right now we don't

Re: [RFC v2 1/4] power: asv: Add common ASV support for Samsung SoCs

2013-12-09 Thread Tomasz Figa
Hi Yadwinder, Sachin, On Friday 15 of November 2013 17:11:28 Sachin Kamat wrote: > From: Yadwinder Singh Brar > > This patch introduces a common ASV (Adaptive Supply Voltage) basic framework > for samsung SoCs. It provides common APIs (to be called by users to get ASV > values or init opp_table)

Re: [RFC v2 1/4] power: asv: Add common ASV support for Samsung SoCs

2013-12-03 Thread Abhilash Kesavan
Hi, CC'ing Doug and Andrew who have also worked on ASV. [...] > diff --git a/drivers/power/asv/Kconfig b/drivers/power/asv/Kconfig > new file mode 100644 > index ..761119d9f7f8 > --- /dev/null > +++ b/drivers/power/asv/Kconfig > @@ -0,0 +1,10 @@ > +menuconfig POWER_ASV > + bool

[RFC v2 1/4] power: asv: Add common ASV support for Samsung SoCs

2013-11-15 Thread Sachin Kamat
From: Yadwinder Singh Brar This patch introduces a common ASV (Adaptive Supply Voltage) basic framework for samsung SoCs. It provides common APIs (to be called by users to get ASV values or init opp_table) and an interface for SoC specific drivers to register ASV members (instances). Signed-off-