Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7959802rwb; Wed, 23 Nov 2022 13:15:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7cDvj6AwCnpTTU8sHC+NnwW3yCZVijjja+4j6xUMLGNHzTWyVfJIEUbL6pqkC2dNsLQsUg X-Received: by 2002:a17:907:986c:b0:7a0:b505:e8f9 with SMTP id ko12-20020a170907986c00b007a0b505e8f9mr14361063ejc.216.1669238112461; Wed, 23 Nov 2022 13:15:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669238112; cv=none; d=google.com; s=arc-20160816; b=tZnrdFW1HBuhnoln8yX/FAWUlsjk0nOZ2yhYwi3/TANa3y3eWi2Q1Kk77TPzQPPH3y aAR5vGfGojWD/SGFdzNjMQpQFW1GB8H6K4jkYmPguGV1jIZeXgu5KPzlAUMBLcAMorI+ nxNE3T3Bvx/4SNBpkuFHfwbVwt9zO0PicN+TrH8JMudUaG925xDZNZbdRMLRFJu/Mfdy FklCMpS0r2tf9XuSesdwOnYklam4yY+6ltGbzFtDRhsrr1+A106ySjf+zY4Cr2ENOLqE wEoTWZOM14aqumqOa2gIIB5xe8NQInq4cQXWWsT9pVkmze/1Nx54InT5CDEJFrTxd9vi d2rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=7tgj7KAtvrku6UetrT4qAWpsJnXmARR2QJx2vc8G6Ao=; b=E2+b6cyDhQ5y+ocfAqwU5kziAB57iuO9mDd1oH7ltDiZ5pL41WVncyCnZy9UjTaIjU pgm1b5zuDz3sEzGc/pJDGbVV/b8/jAYRXosKMZANo4Epx1enDVIsKh37DyZOQ9jzZ3U6 N8eDVZu5jDOtITmFkl1QTyThCn45AQuY2G1JUa9fj3Vif7mDQ5Le/oUqVrxyZIsCAIIx rmmRAFwS2foYdMDwUwVvnmihjOeWBlfsIM6NspXCAlzKTG3O8Nz4/jUjjLWI6+n1GEmo XrsZ7EkwhJBEa2moUbFxv9DBr6Z3yx7oSFkQsMeM9SWoT2xi6lqtBF+6wqeyGx7vovdV nQow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hE7THTRU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a170906268600b0077082e784easi11410663ejc.957.2022.11.23.13.14.50; Wed, 23 Nov 2022 13:15:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hE7THTRU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235880AbiKWUoX (ORCPT + 88 others); Wed, 23 Nov 2022 15:44:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232341AbiKWUoV (ORCPT ); Wed, 23 Nov 2022 15:44:21 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 614C4B3E; Wed, 23 Nov 2022 12:44:20 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 15D83B82479; Wed, 23 Nov 2022 20:44:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1276FC433D6; Wed, 23 Nov 2022 20:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669236257; bh=blYSzKUNc7T988paAGw1Il7D1vmiMKzkZW2yOWCzzlg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hE7THTRUjsqqpPzD1p2zT+Sgxpmvspx3KLbpcQGOZr2BmnKf70NEIbO7heL7VJx+X 1M3JcHc209FIGLf4HtLpfNu06csLx46ZQRgpbZTDuamESCHaRw7Fq+gtnX4JdHMKWJ Aqt0uZe7C0pRUR4g7/Hbp26I+BhIRaXtT61gvr9QOybqjcFFy3b6+yXi/UzH0c8Ext rrworE6PHYCtU6gbWMsyFxfDpue0ay2EMtA4JgFwdBWQybY73Xpy1y6cIjNDC6uzbf nGSNXNutBibXCa+eeHNpgSnLi5Zmonjt2vhCvelH4icfgryzAe0zlzYmDXGHLzFQbQ RdhpiD65GLmgQ== Date: Wed, 23 Nov 2022 20:56:50 +0000 From: Jonathan Cameron To: Fabrice Gasnier Cc: Olivier Moysan , Lars-Peter Clausen , Maxime Coquelin , Alexandre Torgue , , , , Subject: Re: [PATCH 0/3] iio: adc: stm32: add smart calibration Message-ID: <20221123205650.3be4ee4e@jic23-huawei> In-Reply-To: References: <20221115103124.70074-1-olivier.moysan@foss.st.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Nov 2022 12:04:36 +0100 Fabrice Gasnier wrote: > On 11/15/22 11:31, Olivier Moysan wrote: > > Refine offset and linear calibration strategy for STM32MP15 and > > STM32MP13 SoCs: > > > > - offset calibration > > This calibration depends on factors such as temperature and voltage. > > As it is not time consuming, it's worth doing it on each ADC > > start, to get the best accuracy. There is no need to save these data. > > > > - linear calibration > > This calibration is basically SoC dependent, so it can be done only once. > > When this calibration has been performed at boot stage, the ADC kernel > > driver can retrieve the calibration data from the ADC registers. > > Otherwise, the linear calibration is performed once by the ADC driver. > > The backup of these data, allows to restore them on successive ADC starts. > > > > Olivier Moysan (3): > > iio: adc: stm32-adc: smart calibration support > > iio: adc: stm32-adc: improve calibration error log > > iio: adc: stm32-adc: add debugfs to read raw calibration result > > Hi Olivier, > > For the series, you can add my: > Reviewed-by: Fabrice Gasnier Applied to the togreg branch of iio.git and pushed out as testing to let 0-day have a first look at it. Thanks, Jonathan > > Thanks, > Fabrice > > > > > drivers/iio/adc/stm32-adc-core.h | 1 + > > drivers/iio/adc/stm32-adc.c | 135 ++++++++++++++++++------------- > > 2 files changed, 78 insertions(+), 58 deletions(-) > >