[U-Boot,RFT,3/8] adc: exynos-adc: Fix wrong bit operation used to stop the ADC

Message ID 20190209225411.32756-4-krzk@kernel.org
State RFC
Delegated to: Minkyu Kang
Headers show
Series
  • exynos: Fix reboot on Odroid HC1
Related show

Commit Message

Krzysztof Kozlowski Feb. 9, 2019, 10:54 p.m.
When stopping the ADC_V2_CON1_STC_EN should be cleared.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 drivers/adc/exynos-adc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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(&regs->con1);
-	cfg |= ~ADC_V2_CON1_STC_EN;
+	cfg &= ~ADC_V2_CON1_STC_EN;
 
 	writel(cfg, &regs->con1);