From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D285BC433EF for ; Sat, 25 Jun 2022 13:19:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PoPMgxmISCWfb9SOXc7ywl9fztx3jukLwDL+jNyn6v0=; b=m9dRPXn2bHYv+6 PeECWSUTH1hpnn3zeqQ5aNV+TqWGzdnMvmmg7ckw04YvoMyjcX2r6YUD3usjOKfvHkVEABtFFLOOR 2pYCzd6YCNnPar7AJA1V8m/J/J98XeqQDdxO1MsJQVwx9Sn+C9LImiwf8XpEMUEpGL8+kc/f5njW6 uWht0j1Y0+TADSSLc6Cbtg54vdRN3g+FMD/nn46O/ywmFr28JNHpRHktaQLM8J6AAb2LTzzlJgXU7 jE5ldaTWoX+rJjrtLkKyEnb0TOomw+FxTZge8IbRhmwRudhsaDCU4BnbjwSTfhOTm0cAZLUPUvFa1 BE/yGGXS/xIKre4/f8yg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o55gU-0069z9-0j; Sat, 25 Jun 2022 13:18:46 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o55gM-0069wS-E9 for linux-arm-kernel@lists.infradead.org; Sat, 25 Jun 2022 13:18:39 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4748361300; Sat, 25 Jun 2022 13:18:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C288C341CA; Sat, 25 Jun 2022 13:18:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656163116; bh=DrvYsHNixQGAFxZ5B9o45TBNbqBktYaLq5jvaKUH8Tc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=usAhrIS5wLWHr9hU7Do3gZcWvMC4Oeze1rkLQlqxian1RZ4QQIXbBhzWt2vE6roOv h5Sb+F/3L6++RBecYlOK+/fKWRJ9ym5nf86uqhRmfj1hA/GX7s/AZvZAJEWx7MK+G1 WjtrYmqtpIaSuUNZ+7hjjnUNTSqE6HPkDiSXlsFudVcD3DDc7qBHhyLXGU4kjd2zSp hvJ4CuVgysdhorhnAngH26w2Avw3ksAbGOVHB5gl9/Gd+zfnFyIbFEQVEQF0kG4Net Qxs1BfQbAQQAuYWK2N4RMk0X61Dq6Ts87F1diYTYuaJz30o7bp9PW5Q58zMRjtuvlu QwEmR6sMofWDg== Date: Sat, 25 Jun 2022 14:28:02 +0100 From: Jonathan Cameron To: Olivier Moysan Cc: Alexandre Torgue , Fabrice Gasnier , Lars-Peter Clausen , Maxime Coquelin , Paul Cercueil , Wan Jiabing , , , , Subject: Re: [PATCH 0/2] iio: adc: stm32-adc: add checks on adc state Message-ID: <20220625142802.51ee9637@jic23-huawei> In-Reply-To: <20220620154738.801706-1-olivier.moysan@foss.st.com> References: <20220620154738.801706-1-olivier.moysan@foss.st.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220625_061838_567753_002EBCD1 X-CRM114-Status: GOOD ( 11.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 20 Jun 2022 17:47:36 +0200 Olivier Moysan wrote: > On ADC startup a calibration is launched. > A prerequisite for ADC calibration is to have ADC in disabled state. > After kernel boot, the ADC state may be unknown as the ADC may have been left enabled by boot stage. > > Call ADC disable routine systematically before launching calibration. > Adapt ADC disable routine to perform disabling sequence according to current ADC state. > > Olivier Moysan (2): > iio: adc: stm32-adc: make safe adc disable > iio: adc: stm32-adc: disable adc before calibration > > drivers/iio/adc/stm32-adc.c | 6 ++++++ > 1 file changed, 6 insertions(+) > Series applied to the togreg branch and pushed out as testing for all the normal reasons. Thanks, Jonathan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel