Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp385641imn; Thu, 28 Jul 2022 03:58:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vMAuU4qC7WRqOUzfNkQq0oHhY4Jz1RhJ9wmDP8Pjb9tPauE3DsNRHW7IWVBll8lxUoCVuk X-Received: by 2002:a17:906:53c7:b0:711:d2e9:99d4 with SMTP id p7-20020a17090653c700b00711d2e999d4mr20543728ejo.716.1659005898115; Thu, 28 Jul 2022 03:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659005898; cv=none; d=google.com; s=arc-20160816; b=Gya0IQbVb3vFbMpIV12WO510ftM5LDIDg14Kzu6RnBGpzz9ND23N15htp67dIlOyUn oc8kwT3hMgTe+BQasKKuH8ELZurqhDYVL9hvyIY+0qp3UvETPMCE9IrvzgaUILhwPyzK sw4ZAJPdKO349usptY0kUOWd9LaoeHjIPUAaEyU0qCYTrJBIOlNJA3ga2GlaK/jsy5ba CFt3lkWi1wBBdUCy7MLAFvZa3rHd5Y/MXkfZZbANotCRpG0yTEk9rmgDHimG2vmxuLNe KEZK7PlmkQ1fqtLUAZankeieO/nWlx6gc50kMzXNqx3QD8gu/6dVWXhRRD+6WMheADui +Dew== 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:from:date:dkim-signature; bh=QMSVS5co5DmQWtBsGYgUz11jaolJ6abD96Bm3WbXxQQ=; b=J1n/CmoaZ4oNqSfXd/tfDgw9u/TUjpdb1cfR1dPuE6uEUMwB8tz8e+DepsFLCgc16u p36uDutSvMBdBfXZj8P8w+pAuy5Ck6RMdzyWh/W54yez5EpuGfGSqOp7uJ3WslKx5fJ7 OoTCE/bd8737NlgEhooDDoYUOPYPwKiwWov2UmbOBOE5u+mEBYJhKKkWbxMebzTFwh1o 2hulyXOJzUX7NZXb4RSFovH0zwzR6AJxdyKwbLu6ZUm8n5S2G4+eVUYnTSI+5xQVoIEK DXDw5ikvuBhiRAGDlxa28KbMzU2dhePKdS1TiKf922gUgNRDyJUaWL16/2MMfyO1bQpT csRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sYD71ADo; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020a170906374700b0072f1c604fd4si396140ejc.713.2022.07.28.03.57.53; Thu, 28 Jul 2022 03:58:18 -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=@linaro.org header.s=google header.b=sYD71ADo; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235460AbiG1KCU (ORCPT + 99 others); Thu, 28 Jul 2022 06:02:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234891AbiG1KCS (ORCPT ); Thu, 28 Jul 2022 06:02:18 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE3AA4D4FF for ; Thu, 28 Jul 2022 03:02:17 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d3so1386397pls.4 for ; Thu, 28 Jul 2022 03:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=QMSVS5co5DmQWtBsGYgUz11jaolJ6abD96Bm3WbXxQQ=; b=sYD71ADoWtX4BaIx2emIjxU1J4bV15HBdyGFVZKkDRrjpgFHGR0Fg3ijCNvH85DeKK fiWfBRl+dzTQSOAIIxRFAkQ3uTGREnlg6EIkMEWr2zxS97gUHOqjyda/LOq4HiKrrp5T WFxRaQFpWOaCFgPwdnByfOGgUn4voXe32Ro3byZdEYZXE95aUWybUySNNsfaueMXZXuR KxzUB1mUpsaO7DvMuUVKnxZIyHYWuTUOfMkI5r8lNLix/p8K888tQvS8aBfKEUD1G0/u 22chg7Xjvv9M5cSL1EVJg5Fd/lC9FrW68PenrKDx6Xe285zXLo1OrfYqy8c3lWqKlTLn hQ1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=QMSVS5co5DmQWtBsGYgUz11jaolJ6abD96Bm3WbXxQQ=; b=sGy6Q5Co1zlw6X43wRfAMQbrbVnM7+AQVy9WJAIMbOeVOlHTwHr1lwQ/F0nxVpjs5j OPsqdHfhNMbFPB6mUXCGj0PCiqZ2eDM+iK4h3X2BosVInvhYaLWEj6X5Hjwx/jAqHX7H OyH5f9Zbm7e6zHljTF2gENRgSMsnAnUpt5lzC3DKJoww4u6x/DCIQtUgHPaGOB+nWyTI YBdu/CDKCjo0tyZV1L3QZO7EUpzPelQqNanEmjNAFzfNhEWCEsbQoWcEilSz3ImbpHff FRgG5VWaegq2cvBepg9p25+xtOX7JraQEc4qT0TkMGSSXfNsbCQuPmvUWDkMikQyI4q7 KfuQ== X-Gm-Message-State: AJIora+OzCIRLYOmZNFAIbSWhzL/oS3xr1RbkccGDsqVIa8jHrQG3RLE aJG/TRbazjmg3q3oa/0l19O/aZan5sSHBg== X-Received: by 2002:a17:902:9a07:b0:16d:3c0a:b9e7 with SMTP id v7-20020a1709029a0700b0016d3c0ab9e7mr25849014plp.149.1659002537073; Thu, 28 Jul 2022 03:02:17 -0700 (PDT) Received: from localhost ([122.171.18.80]) by smtp.gmail.com with ESMTPSA id v12-20020a1709029a0c00b0016c454598b5sm761271plp.167.2022.07.28.03.02.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 03:02:16 -0700 (PDT) Date: Thu, 28 Jul 2022 15:32:14 +0530 From: Viresh Kumar To: Zeng Jingxiang Cc: a.zummo@towertech.it, alexandre.belloni@bootlin.com, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Zeng Jingxiang Subject: Re: [PATCH v2] rtc: rtc-spear: set range max Message-ID: <20220728100214.dta4feqm5zo25f4g@vireshk-i7> References: <20220728100101.1906801-1-zengjx95@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220728100101.1906801-1-zengjx95@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 28-07-22, 18:01, Zeng Jingxiang wrote: > From: Zeng Jingxiang > > In the commit f395e1d3b28d7c2c67b73bd467c4fb79523e1c65 > ("rtc: spear: set range"), the value of > RTC_TIMESTAMP_END_9999 was incorrectly set to range_min. > 390 config->rtc->range_min = RTC_TIMESTAMP_BEGIN_0000; > 391 config->rtc->range_max = RTC_TIMESTAMP_END_9999; > > Fixes: f395e1d3b28d ("rtc: spear: set range") > Signed-off-by: Zeng Jingxiang Acked-by: Viresh Kumar > --- > > Change in v2: > - Add fixes tag > > drivers/rtc/rtc-spear.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/rtc/rtc-spear.c b/drivers/rtc/rtc-spear.c > index d4777b01ab22..736fe535cd45 100644 > --- a/drivers/rtc/rtc-spear.c > +++ b/drivers/rtc/rtc-spear.c > @@ -388,7 +388,7 @@ static int spear_rtc_probe(struct platform_device *pdev) > > config->rtc->ops = &spear_rtc_ops; > config->rtc->range_min = RTC_TIMESTAMP_BEGIN_0000; > - config->rtc->range_min = RTC_TIMESTAMP_END_9999; > + config->rtc->range_max = RTC_TIMESTAMP_END_9999; > > status = devm_rtc_register_device(config->rtc); > if (status) > -- > 2.27.0 -- viresh