Re: [PATCH 25/26] OMAP: PM: convert the SmartReflex code into the AVS driver framework

2012-01-12 Thread Jean Pihet
Kevin, On Thu, Jan 12, 2012 at 1:52 AM, Kevin Hilman wrote: > Jean Pihet writes: > >>> if you already decide in runtime the correct initialization to call, why >>> do you add ifdefs ? >> >> There is no #ifdef with CONFIG_POWER_AVS_OMAP_V[12], those options are >> used to compile or not the respe

Re: [PATCH 25/26] OMAP: PM: convert the SmartReflex code into the AVS driver framework

2012-01-12 Thread Jean Pihet
Kevin, Todd, On Thu, Jan 12, 2012 at 1:55 AM, Kevin Hilman wrote: > Todd Poynor writes: > >>> +static irqreturn_t _interrupt(int irq, void *data) >>> +{ >>> +    struct smartreflex *sr = (struct smartreflex *)data; >>> +    u32 status = 0; >>> + >>> +    /* Read the status bits */ >>> +    sr_re

Re: [PATCH 25/26] OMAP: PM: convert the SmartReflex code into the AVS driver framework

2012-01-11 Thread Kevin Hilman
Todd Poynor writes: >> +static irqreturn_t _interrupt(int irq, void *data) >> +{ >> +struct smartreflex *sr = (struct smartreflex *)data; >> +u32 status = 0; >> + >> +/* Read the status bits */ >> +sr_read_reg(sr, IRQSTATUS); >> + >> +/* Clear them by writing back */ >> +s

Re: [PATCH 25/26] OMAP: PM: convert the SmartReflex code into the AVS driver framework

2012-01-11 Thread Kevin Hilman
Jean Pihet writes: >> if you already decide in runtime the correct initialization to call, why >> do you add ifdefs ? > > There is no #ifdef with CONFIG_POWER_AVS_OMAP_V[12], those options are > used to compile or not the respective modules, cf. > driver/power/avs/Makefile. I'd suggest not even

Re: [PATCH 25/26] OMAP: PM: convert the SmartReflex code into the AVS driver framework

2011-11-23 Thread Todd Poynor
... > +int sr_configure_errgen(struct smartreflex *sr) > +{ > + struct smartreflex_platform_data *pdata = sr->pdev->dev.platform_data; > + u32 sr_config, sr_errconfig; > + > + if (IS_ERR_OR_NULL(sr)) > + return -EINVAL; > + > + if (!sr_calculate_clk_length(sr)) > +

Re: [PATCH 25/26] OMAP: PM: convert the SmartReflex code into the AVS driver framework

2011-11-23 Thread Felipe Balbi
Hi, On Wed, Nov 23, 2011 at 12:30:54PM +0100, Jean Pihet wrote: > >> On Wed, Nov 23, 2011 at 10:51 AM, Felipe Balbi wrote: > >> > On Tue, Nov 22, 2011 at 04:06:09PM +0100, jean.pi...@newoldbits.com > >> > wrote: > >> >> +config POWER_AVS_OMAP_V1 > >> >> +     tristate "AVS support for the OMAP I

Re: [PATCH 25/26] OMAP: PM: convert the SmartReflex code into the AVS driver framework

2011-11-23 Thread Jean Pihet
Felipe, On Wed, Nov 23, 2011 at 12:04 PM, Felipe Balbi wrote: > On Wed, Nov 23, 2011 at 11:22:42AM +0100, Jean Pihet wrote: >> Hi Felipe, >> >> On Wed, Nov 23, 2011 at 10:51 AM, Felipe Balbi wrote: >> > On Tue, Nov 22, 2011 at 04:06:09PM +0100, jean.pi...@newoldbits.com wrote: >> >> +config POWE

Re: [PATCH 25/26] OMAP: PM: convert the SmartReflex code into the AVS driver framework

2011-11-23 Thread Felipe Balbi
On Wed, Nov 23, 2011 at 11:22:42AM +0100, Jean Pihet wrote: > Hi Felipe, > > On Wed, Nov 23, 2011 at 10:51 AM, Felipe Balbi wrote: > > On Tue, Nov 22, 2011 at 04:06:09PM +0100, jean.pi...@newoldbits.com wrote: > >> +config POWER_AVS_OMAP_V1 > >> +     tristate "AVS support for the OMAP IP version

Re: [PATCH 25/26] OMAP: PM: convert the SmartReflex code into the AVS driver framework

2011-11-23 Thread Jean Pihet
Hi Felipe, On Wed, Nov 23, 2011 at 10:51 AM, Felipe Balbi wrote: > On Tue, Nov 22, 2011 at 04:06:09PM +0100, jean.pi...@newoldbits.com wrote: >> +config POWER_AVS_OMAP_V1 >> +     tristate "AVS support for the OMAP IP version 1" >> +     depends on ARCH_OMAP3 && PM >> +     help >> +       Say Y

Re: [PATCH 25/26] OMAP: PM: convert the SmartReflex code into the AVS driver framework

2011-11-23 Thread Felipe Balbi
On Tue, Nov 22, 2011 at 04:06:09PM +0100, jean.pi...@newoldbits.com wrote: > +config POWER_AVS_OMAP_V1 > + tristate "AVS support for the OMAP IP version 1" > + depends on ARCH_OMAP3 && PM > + help > + Say Y to enable AVS support on OMAP containing the version 1 of > + the Sm