Subject: Re: [PATCH] iio: adc: exynos: Simplify Exynos7-specific init

From: Jonathan Cameron <[email-masked]>
Date: Sat, 16 May 2020 17:37:55 +0100

On Mon, 11 May 2020 22:49:28 +0530
"Alim Akhtar" <[email-masked]> wrote:

> Hello Krzysztof,
> Thanks for the patch.
> 
> > -----Original Message-----
> > From: Krzysztof Kozlowski <[email-masked]>
> > Sent: 11 May 2020 14:04
> > To: Jonathan Cameron <[email-masked]>; Hartmut Knaack
> > <[email-masked]>; Lars-Peter Clausen <[email-masked]>; Peter Meerwald-
> > Stadler <[email-masked]>; Kukjin Kim <[email-masked]>; Krzysztof
> > Kozlowski <[email-masked]>; [email-masked]; linux-arm-
> > [email-masked]; [email-masked]; linux-
> > [email-masked]
> > Cc: Alim Akhtar <[email-masked]>
> > Subject: [PATCH] iio: adc: exynos: Simplify Exynos7-specific init
> > 
> > The Exynos7-specific code bits in ADC driver do not play with PHY:
> > the field exynos_adc_data.needs_adc_phy is not set in exynos7_adc_data
> > instance.  Therefore the initialization code does not have to check if it  
> is true.
> > 
> > Signed-off-by: Krzysztof Kozlowski <[email-masked]>
> >   
> Reviewed-by: Alim Akhtar <[email-masked]>
> Tested on exynos7-espresso board so,
> Tested-by:  Alim Akhtar <[email-masked]>

Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to play with it.

Thanks,

Jonathan

> 
> > ---
> > 
> > Only build tested.
> > ---
> >  drivers/iio/adc/exynos_adc.c | 3 ---
> >  1 file changed, 3 deletions(-)
> > 
> > diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c  
> index
> > 22131a677445..219c8eb32d16 100644
> > --- a/drivers/iio/adc/exynos_adc.c
> > +++ b/drivers/iio/adc/exynos_adc.c
> > @@ -449,9 +449,6 @@ static void exynos_adc_exynos7_init_hw(struct
> > exynos_adc *info)  {
> >  	u32 con1, con2;
> > 
> > -	if (info->data->needs_adc_phy)
> > -		regmap_write(info->pmu_map, info->data->phy_offset, 1);
> > -
> >  	con1 = ADC_V2_CON1_SOFT_RESET;
> >  	writel(con1, ADC_V2_CON1(info->regs));
> > 
> > --
> > 2.17.1  
> 
> 

_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel