From patchwork Tue Mar 5 19:57:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1051976 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="u3UKvl+d"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44DSQ94vhfz9s3q for ; Wed, 6 Mar 2019 06:58:57 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 6269CC21DFD; Tue, 5 Mar 2019 19:58:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 6706FC21C3F; Tue, 5 Mar 2019 19:58:35 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D26DCC21DFA; Tue, 5 Mar 2019 19:58:32 +0000 (UTC) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by lists.denx.de (Postfix) with ESMTPS id 56209C21DC1 for ; Tue, 5 Mar 2019 19:58:29 +0000 (UTC) Received: from localhost.localdomain (unknown [194.230.155.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B632720842; Tue, 5 Mar 2019 19:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551815908; bh=nnkUGXOkSSDlacJCvbxrLOTtNwpvEV2L7hbcG4tIvks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u3UKvl+dcSH6Zm0XOeDHVkuLcULO/QOA8a5uJ98Bih0XUCjTAuhJS4xlIkqST3O7Y L8ScrdpEn84c3w8RH0d2difiKe7lhOMUPEzP73um93amw7nteHGR29xWkpgiJgTJN/ Ldx+b7VFldKcz7J4JfGWFI1r+fyX/ZVp4acgg4io= From: Krzysztof Kozlowski To: Albert Aribaud , Jaehoon Chung , Lukasz Majewski , Krzysztof Kozlowski , Simon Glass , Minkyu Kang , Marek Szyprowski , u-boot@lists.denx.de Date: Tue, 5 Mar 2019 20:57:54 +0100 Message-Id: <20190305195802.14397-2-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190305195802.14397-1-krzk@kernel.org> References: <20190305195802.14397-1-krzk@kernel.org> Subject: [U-Boot] [PATCH v4 1/9] adc: exynos-adc: Fix wrong bit operation used to stop the ADC X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" When stopping the ADC_V2_CON1_STC_EN should be cleared. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Lukasz Majewski Tested-by: Anand Moon --- 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);