From: Krzysztof Kozlowski Date: Wed, 6 Mar 2019 18:37:49 +0000 (+0100) Subject: adc: exynos-adc: Fix wrong bit operation used to stop the ADC X-Git-Tag: v2025.01-rc5-pxa1908~3082^2~17 X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=6e74c6af32057f8e9fb97b781807c55f834d2063;p=u-boot.git adc: exynos-adc: Fix wrong bit operation used to stop the ADC When stopping the ADC_V2_CON1_STC_EN should be cleared. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Lukasz Majewski Tested-by: Anand Moon Signed-off-by: Minkyu Kang --- diff --git a/drivers/adc/exynos-adc.c b/drivers/adc/exynos-adc.c index d33e3d632a..12c49fc8ce 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);