From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Fri, 15 Feb 2019 07:54:59 +0100 Subject: [U-Boot] [PATCH v2 1/9] adc: exynos-adc: Fix wrong bit operation used to stop the ADC In-Reply-To: <20190213164648.26579-2-krzk@kernel.org> References: <20190213164648.26579-1-krzk@kernel.org> <20190213164648.26579-2-krzk@kernel.org> Message-ID: <20190215075459.7b02763a@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 13 Feb 2019 17:46:40 +0100 Krzysztof Kozlowski wrote: > When stopping the ADC_V2_CON1_STC_EN should be cleared. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/adc/exynos-adc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/adc/exynos-adc.c b/drivers/adc/exynos-adc.c > index d33e3d632afc..12c49fc8cefb 100644 > --- a/drivers/adc/exynos-adc.c > +++ b/drivers/adc/exynos-adc.c > @@ -62,7 +62,7 @@ int exynos_adc_stop(struct udevice *dev) > > /* Stop conversion */ > cfg = readl(®s->con1); > - cfg |= ~ADC_V2_CON1_STC_EN; > + cfg &= ~ADC_V2_CON1_STC_EN; > > writel(cfg, ®s->con1); > Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature URL: