Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7767499rwd; Tue, 6 Jun 2023 16:20:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7X1SW8QuMl8EA88aaurdhT3IUstzBTedsDDYHQCMNVn0IPyvIds5f2Dw5e5Uja0g/XB3UU X-Received: by 2002:a17:902:db03:b0:1b1:99c9:8ce5 with SMTP id m3-20020a170902db0300b001b199c98ce5mr14186924plx.16.1686093640869; Tue, 06 Jun 2023 16:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686093640; cv=none; d=google.com; s=arc-20160816; b=V2jbK2sfs78imVSSv67SqSztXquSQqso7jPC6lLndksBG//KW/zyKw80BZm+Jz9mjZ 8q2zhCZc/YHVnzjsB3a/uEWWJUHFMW4Pq7pXoUZ7jGpzaRxMCv4d6RX0um5RR+ZDE1ik dDFopqDKT8nIcFEzFxhcg42Y9ozZk44By72bjJH7frdxka3wRk1tre6u6iw4L2juiGa/ /E4uBcwJ7MMwEAfzzMXt3lnS63e5MYO26GCrsMgLgT+tXC8LtZIJqrUaWd8Ycf4hndTt hIxyGdOtHF8W1lVAA9xCwYEbXtuml7CcCWmXM/S+g+o4bU4CHg8lTKEU2PltlGbzEycs jtXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from; bh=/+dsd+UZbskQrpPQ0tVCW7PYktv3NOtp+lfIo6jEycE=; b=c+8GdHNRMkS4R9sLNy710dn6ObY/dxo0LbI1a5sud+BMnkyZLrUFpjRf3UaojPOdCn Qr7Mi2jUIXeVjq96e72N7Rrnm9ILeCRvc1aP9CuUSljQl96bFjv+8BLL1Bc8xc2IrAh+ 0yg+szHtqoqtDgw3oBxOneesObm3P/q4c5l3MdkxT5dnlyaNdKUOiRJDbfzeqfG+0p2Z Q2xyFCYgTEEI6Q1rly/WZBrka4nvaFNz1TR/oelBhZEe1HAYwAdgXfKlevISkyQCwVl0 4QmdtPSzZs9nermf4jE+aW4N5Md+dLSP5Ob0G4r7wGjkY5reQrrGZGRzXQvqILzMIXnz Iw7w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 t23-20020a170902b21700b001b0496b5affsi2383844plr.353.2023.06.06.16.20.25; Tue, 06 Jun 2023 16:20:40 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239633AbjFFWwf (ORCPT + 99 others); Tue, 6 Jun 2023 18:52:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238285AbjFFWwc (ORCPT ); Tue, 6 Jun 2023 18:52:32 -0400 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A012188 for ; Tue, 6 Jun 2023 15:52:31 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id cebfce1e-04bc-11ee-b3cf-005056bd6ce9; Wed, 07 Jun 2023 01:52:27 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Wed, 7 Jun 2023 01:52:26 +0300 To: George Stark Cc: jic23@kernel.org, lars@metafoo.de, neil.armstrong@linaro.org, khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, andriy.shevchenko@linux.intel.com, nuno.sa@analog.com, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, kernel@sberdevices.ru Subject: Re: [PATCH v3] meson saradc: fix clock divider mask length Message-ID: References: <20230606165357.42417-1-gnstark@sberdevices.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230606165357.42417-1-gnstark@sberdevices.ru> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, Jun 06, 2023 at 07:53:57PM +0300, George Stark kirjoitti: > According to datasheets of supported meson SOCs length of ADC_CLK_DIV the datasheets > field is 6 bits long. Although all supported SOCs have the register 6-bit > with that field documented later SOCs use external clock rather than > ADC internal clock so this patch affects only meson8 family (S8* SOCs) s/SOC/SoC/g, and mind the grammar period at the end. I believe Jonathan can fix when applying this, no need to resend unless he asks for it. FWIW, Reviewed-by: Andy Shevchenko > Fixes: 3adbf3427330 ("iio: adc: add a driver for the SAR ADC found in Amlogic Meson SoCs") > Signed-off-by: George Stark > --- > Changelog: > > v1 -> v2: > * Update commit message > v2 -> v3: > * Update commit message > --- > drivers/iio/adc/meson_saradc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c > index 85b6826cc10c..b93ff42b8c19 100644 > --- a/drivers/iio/adc/meson_saradc.c > +++ b/drivers/iio/adc/meson_saradc.c > @@ -72,7 +72,7 @@ > #define MESON_SAR_ADC_REG3_PANEL_DETECT_COUNT_MASK GENMASK(20, 18) > #define MESON_SAR_ADC_REG3_PANEL_DETECT_FILTER_TB_MASK GENMASK(17, 16) > #define MESON_SAR_ADC_REG3_ADC_CLK_DIV_SHIFT 10 > - #define MESON_SAR_ADC_REG3_ADC_CLK_DIV_WIDTH 5 > + #define MESON_SAR_ADC_REG3_ADC_CLK_DIV_WIDTH 6 > #define MESON_SAR_ADC_REG3_BLOCK_DLY_SEL_MASK GENMASK(9, 8) > #define MESON_SAR_ADC_REG3_BLOCK_DLY_MASK GENMASK(7, 0) > > -- > 2.38.4 > -- With Best Regards, Andy Shevchenko