Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp101582rwi; Sun, 30 Oct 2022 21:17:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6HM6gby88X1UrWeWgSWLZquqQFpXCF8ChbHZY7lUcZwmEb4sHjvXa7LJmoG74nKlOcoHFK X-Received: by 2002:a05:6402:b0e:b0:461:f7a8:3e3a with SMTP id bm14-20020a0564020b0e00b00461f7a83e3amr11664062edb.372.1667189878231; Sun, 30 Oct 2022 21:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667189878; cv=none; d=google.com; s=arc-20160816; b=TcsRIL73JRLr+qHl++kn21oNIyZTRi2b+OMSNXHBUtYKoCjLScIsGsTy2ZCd7nfyey bMqf0PKuvtYCkhYU3z/+dbv7FcN5IPAHyA8M8yE0+D4gzNLwhbQm3NS5gwU9T4RWII1t F27dqh3Oy/CavEjQimccwBZivcdWLQXtKx4RwOgkK6Ngr4y/yt2rjERiLnVUelouSmWY lRzqwuRqDeA3Q8oQmF9FiGLSjVVrK1JdSmv7pIaSPVx4DrxBTIhHbLpBxPVU7vK7m4+o PC5HVpRlB0y3aR1FrNFtaxKhEBuAf3sciLLXK+fY9sRyJatrS4LCszuR+aMefUrTUEBc IMLg== 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=XzP01yt/x3dIEPesSvDXp/5LU1y4E96FJNR2JRV7k90=; b=T+w+yH7TMQtvgokb+C/1CPtEAUv4qmoZWlQjReLbh6htNMC/WTJzqhOWnUqxA/YFyr /+QWLmrosG4ZNNO2k46ApKq9qH9YOGsNExsNQdwvfuKamPQZrvE1fMWeYSCYy+XKmBph /vGy+002qnXqa3lHG/vG84B3Pu4ouA351KMCJdFv2Tew7zwK46IkmsOg1jpsI6PRQaOW 1/9X/y+PjB3K+LUQtbbYTHVKtH3ecJ8+OIDnS445vG3/BiBOz/+uf5bwyRo0V2s8PUqW q/ZkU8ssU/T1DSYjV34z5oD7dqgpCXBJZOsesc8+r2FsqtAXYTm2hLG4huwQyORwTz6Y ddqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HJbnJPZv; 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 dp18-20020a170906c15200b007824b741e7asi8187080ejc.236.2022.10.30.21.17.33; Sun, 30 Oct 2022 21:17:58 -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=@kernel.org header.s=k20201202 header.b=HJbnJPZv; 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 S229632AbiJaD0w (ORCPT + 99 others); Sun, 30 Oct 2022 23:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiJaD0v (ORCPT ); Sun, 30 Oct 2022 23:26:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 387AD267; Sun, 30 Oct 2022 20:26:49 -0700 (PDT) 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 40D7960F55; Mon, 31 Oct 2022 03:26:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C938C433C1; Mon, 31 Oct 2022 03:26:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667186808; bh=K7fJIDBZ9sghIrX7z558eOwkI5MBy/4uAVIbC63i3HQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HJbnJPZvaYXQ/oydCCLVqh1oWpWjOXpPn4ApRW1LLeaeVIWPVIgAckcg6H2Cgr8LA gLrWvEqZj0ePI1OsBS5Y3eREQyrwCJvX5/oB8Lkj0fgP+L7CaxiKRDg7c6l8EREbxU jLZGLB082BhHA3RiEE1R456go4l7OCAmZGWcbGffI0Ve+DugbRf40XpPbih+DL4g7t H/GnAxx32ItKm/nN2+H0e/p9rO64R2Pzv/guK7+33KQBx0xjRsJib8OfAV6vie78hZ MQkXcX/JoUjo/qUa+ccKAfnCdlPxYTrR7YRWOY3qHE7b+2XTVIz8wGhmlWx5Nu6ki3 u6kdvPgk/AiFQ== Date: Mon, 31 Oct 2022 11:26:44 +0800 From: Tzung-Bi Shih To: Guenter Roeck Cc: Alessandro Zummo , Alexandre Belloni , Benson Leung , linux-rtc@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, Brian Norris Subject: Re: [PATCH] rtc: cros-ec: Limit RTC alarm range if needed Message-ID: References: <20221029005400.2712577-1-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221029005400.2712577-1-linux@roeck-us.net> X-Spam-Status: No, score=-8.2 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 Fri, Oct 28, 2022 at 05:54:00PM -0700, Guenter Roeck wrote: > Drop error messages in cros_ec_rtc_get() and cros_ec_rtc_set() since the > calling code also logs an error and to avoid spurious error messages if > setting the alarm ultimately succeeds. It only retries for cros_ec_rtc_set(). cros_ec_rtc_get() doesn't emit spurious error messages. cros_ec_rtc_get() could preserve the error log; cros_ec_rtc_set() could change from using dev_err() to dev_warn() since cros_ec_rtc_set_alarm() calls dev_err() if cros_ec_rtc_set() fails. But this is quite nitpick so anyway. > Cc: Brian Norris > Signed-off-by: Guenter Roeck Reviewed-by: Tzung-Bi Shih