Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp934562rwb; Wed, 28 Sep 2022 10:54:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7t1mHrjV4N5fpX56BJTHGe6/35xMp8W8y1SEcPSBwwlfH3gqmutDSROsDPZ2QKhZcT043s X-Received: by 2002:a65:4303:0:b0:439:f026:ccee with SMTP id j3-20020a654303000000b00439f026cceemr30314692pgq.322.1664387644751; Wed, 28 Sep 2022 10:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664387644; cv=none; d=google.com; s=arc-20160816; b=0hc1e+sI0mQkHC/VUWZz53Rq17hLbWS1EkJTjwGAhqWv9SQx3hokTZXQ0PUnwd3wmh BNkF7fYCj01RsSLDaeTiSEkkxc6H427ytDczwa1VPApdZ2WyE61Ji8hlC5OykbJo9CIR 5D1kBuelaBHIM+toVNagjttjKOLI8e1p9/YR68tKaxu0WtEIP49Ja94z0mOSZtRjmCAw Uqb/RZojK1gGdg5t0YY9j+RCOj8Aod3pFi82vN4d1lVCPEt9JzmAMzSPTacEyXXzDTfL skmbaJVTGa3bpqtO61Sq0uACBeLRG+xYq9oSfcDx+KsOvVpmHHjc3e34yjLbfmDi9WVu 8tRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mbxRn007Ip2c/fdHqU/bp/LXy4PPcd8ySvUFUqzEX6s=; b=NspySbjEfrOGI1KMHWxPMDkEgc158metJvCTpUscUrT7/XsQCfFgEeQhOsCQRzaDJi ryl5dSw7Z3VVVprqHtOsSjkDnW/e34/554EpBQyYMvIbuCj7O0nDURCEOfaSbJkgBP1P eVJj4Jt2BRpyJ58nb9t06vHHih0esNs4xpKf0If96dTBVdltYQdEgpTj1eIg5tKeaJIf VG0vvZaqHQ8fDW5LmEwUgWz3FaSakgYEDgZwyFGj3uhV9W+yk/mK01587M+DoBQpGvNw 7Ou4pD36cFrEyXrURGUgR8gD3ibInhPXmmfNLzAKoAuNHTmgpsF7BETMymR9w50Ujrmx Vj6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KDSVQ1oM; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t135-20020a635f8d000000b004341f7c3b06si6631872pgb.330.2022.09.28.10.53.53; Wed, 28 Sep 2022 10:54:04 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=KDSVQ1oM; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234170AbiI1Qvs (ORCPT + 99 others); Wed, 28 Sep 2022 12:51:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234386AbiI1Qvm (ORCPT ); Wed, 28 Sep 2022 12:51:42 -0400 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A4A8E9525; Wed, 28 Sep 2022 09:51:41 -0700 (PDT) Received: by mail-qv1-xf36.google.com with SMTP id x13so1418134qvn.4; Wed, 28 Sep 2022 09:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=mbxRn007Ip2c/fdHqU/bp/LXy4PPcd8ySvUFUqzEX6s=; b=KDSVQ1oMBKRLgWEH0InLjPc/aLqNu0zJv9KCeb8pdE0nGiSRyuKb+9DE+EiYJnbcj/ 5W1QoMNbFR8fVhpkgXjoUmwOHLLwmX0oCbXvktWasxGC3jQReTgauOcAnmNu6PeNALaT UqcmXt9f/k5KyHbejcWPZGCuaX758i59+J3Ih/oqrzRUSd40tW8vWxku8ZEFNkA5tVAf LlbTu/3PjEkZlVfhoqC/toTBWPSvXO4D+eLotlQz+TXjWh/O8HKOj+XbHQ6/PsZ7mkeh kbW1JxtOwjFtbNfwAa5yVKWxeFkEXKz56IXX77UAuUH5jPopvluRUhwSGTqgneWCsw8d ug9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=mbxRn007Ip2c/fdHqU/bp/LXy4PPcd8ySvUFUqzEX6s=; b=NQ8k83/U315P7XE81G6UFgRmRMaxTWtR6TUYfEZt08N8//8Tts80K0FGya5KSakk5c 16ha7Qyg9+TGoqWfrKUnhHWEqtTkE+Pil3DL4InbWSpyree5fFZDAv4WSkJphSDqoG2m ppsyMHUBW2Vr68AMKkYNeIOfoHwMp7klX/SFlekFlOQsFh9pP2+RgHrWBkXtrNgbn1yw RSFlblpVgCtbG+V9T1444h4Vm9W3uNnZzqd9a3fvqWq7E/Nswj4VpzoBhRoyaSkwRTjC wuSnUFW3GsNebvkbIuzSh+0nzUsrQgRymHovwKKLIxOynS9GWAlrYcDBZm8STOsMu10+ seNA== X-Gm-Message-State: ACrzQf01/Bbx8QJs5KepS5+Di+rOlSMn27zA/p/imKYDHo9jwoiAKV5I 43+jL527ePER1CSuEHLGeDALaBM94REvof6K49cIor6R8EQ= X-Received: by 2002:a05:6214:c63:b0:4ad:6b45:8235 with SMTP id t3-20020a0562140c6300b004ad6b458235mr26846114qvj.48.1664383900664; Wed, 28 Sep 2022 09:51:40 -0700 (PDT) MIME-Version: 1.0 References: <20220928164114.48339-1-olivier.moysan@foss.st.com> <20220928164114.48339-2-olivier.moysan@foss.st.com> In-Reply-To: <20220928164114.48339-2-olivier.moysan@foss.st.com> From: Andy Shevchenko Date: Wed, 28 Sep 2022 19:51:04 +0300 Message-ID: Subject: Re: [PATCH 1/8] iio: adc: stm32-adc: fix channel sampling time init To: Olivier Moysan Cc: Alexandre Torgue , Fabrice Gasnier , Jonathan Cameron , Lars-Peter Clausen , Maxime Coquelin , nuno.sa@analog.com, Paul Cercueil , Sebastian Andrzej Siewior , Wan Jiabing , Yannick Brosseau , linux-arm-kernel@lists.infradead.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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, Sep 28, 2022 at 7:42 PM Olivier Moysan wrote: > > Fix channel init for ADC generic channel bindings. > In generic channel initialization, stm32_adc_smpr_init() is called > to initialize channel sampling time. The "st,min-sample-time-ns" > property is an optional property. If it is not defined, > stm32_adc_smpr_init() is currently skipped. However stm32_adc_smpr_init() > must always be called, to force a minimum sampling time for > the internal channels, as the minimum sampling time is known. > Make stm32_adc_smpr_init() call unconditional. What is the text width here? It's okay to use Up to ~72 (or slightly more) as a limit and format accordingly. > Fixes: 796e5d0b1e9b ("iio: adc: stm32-adc: use generic binding for sample-time") > > Signed-off-by: Olivier Moysan Tag blocks mustn't have the blank lines. -- With Best Regards, Andy Shevchenko