Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp972593pxb; Wed, 29 Sep 2021 13:52:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd7Yfnp9EuQBg+ptnYCRikiPF1iG9Y9/hMbnft/n+JURDS3Bi3pZc6/5YXCXXHuvO+Wh5P X-Received: by 2002:a17:90b:911:: with SMTP id bo17mr6671317pjb.232.1632948766982; Wed, 29 Sep 2021 13:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632948766; cv=none; d=google.com; s=arc-20160816; b=Mf5QI5JDPFnlMqq6Oq9clUT4z7l4qoPMnJvWR1lxal9Bpbb5oVz+Mjzsz7XaRfWv3q /fwyAN0itd6VGVZ7tb2O7wNESId9ueqccwqHQJXBgDAwqB3zirbpneXtn6Vhb6iGtOdN 7KBoQ3BZPkwMFc0M9SPozVAW7kQ79Ujk88J2xTn6YPWLAXClEubEwX5RB/Otsh8tUGts R0dG5H966D/q8ML1/aMMTRCnYViu6nP5NaInRxPpoHPDYsTtAutUty36CU2cpOdP7Xwx fi8clNuMD1JRvnJsfZ2IN7jvkyKHFOpO8WooHzU2cT3tTv0vaNchnOszZ+MXV7XrhXDz zZtA== 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=ei5m2coJFPE9ArBvAOBUe88q9SzwkYzMD0NediKju6U=; b=l5W7MmauorSuxh3ZiI/BbmrGL6wDDI7cfZyxPjLoR5pSvmdZoAJQ4THY6D/YjRXrLi bSSmpT21gkzGTj3ZE6cJZyj/9aBBVbfNwJx+GsRPqfdza26Ty2xpZWzWsbjSKxsej1wL 9w0cEVlapd0hrCElyFrP1BNR8FsLDM3CT9vLdCYzGloClCOhdm/txJlpkJytdCfNcdiW CfqNMh7cehzCqfLudF70F7bBSqSkUd5bJE7akM27wq9KlifAhaY3fHPU1nxZ1ZWCx1Or mXMVZHphUHs/b2amSb6cJdhGn1F7Lh//uN2EbfeVZVQDkqDJ+sVjxfDqk5qvD3PNJCd8 JQVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qEv872EZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si1126725pgq.238.2021.09.29.13.52.00; Wed, 29 Sep 2021 13:52:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qEv872EZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1346772AbhI2UsC (ORCPT + 99 others); Wed, 29 Sep 2021 16:48:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346011AbhI2UsB (ORCPT ); Wed, 29 Sep 2021 16:48:01 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFC09C061766 for ; Wed, 29 Sep 2021 13:46:19 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id x27so16115138lfu.5 for ; Wed, 29 Sep 2021 13:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ei5m2coJFPE9ArBvAOBUe88q9SzwkYzMD0NediKju6U=; b=qEv872EZJ1VZxT3IbJ1lydKZMOtHlz2Tq+poMTU1EKCSqXT6FO1OsC7Rr+v4XFJLfu sh3FDwWV8D8kla4buDfzP9s/pIFjI20Ke+2kzu5bFSRunrsNbTbLE22/VNWZbyl31Ho4 zC6ZL3/oa0CIuBN4hbE+4PVZPLmzFeni2OSZIC+HlfoxlZ6aVFhfUwfAtkyGN6GsyOap VOpWLMT6atWAINgWI7nt6MoexZQ6FhZ0nt5uIVa2L2mIbSs2XtHhnILZCdtulY3U5+CM n60SmQgw3yX64OcifIiQ9uN5K10wtgiaDdQ6m4PPUVmHMue7zLg41F2rxhTG6NjmFsS2 URSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ei5m2coJFPE9ArBvAOBUe88q9SzwkYzMD0NediKju6U=; b=AHH1rBVrm2kIDuJhDmzM5U3Eujt7S3IYMYvXJjfEHBym/paIyIQmUY3Dmt4jL7mSbq AZe9sseSiP+8OCYyiZJwcJKaIbDCl105ft+MB9XtLHexOkx1hUIynnXqgmrjFH+SurI6 NSgROoqXQoCrdtWpD23cpK5VA2DRwxsKrk1hQxxY9n6MKyS/91AsmQB4Et4Jjv+pzcYO r5dq6TfhZB4IpHEuVE5aMRrG0Bt/7h6SHPGK8tpIXbTyIlK6rUa4QmlwfSY4rq5DSpjs Bz1kG8ljuTYOkCIoLUV8O3KaFHO6g//M7qbU0ub0NMOQMRhqqZihr4Ozpoj/+uFdtiup aS8A== X-Gm-Message-State: AOAM531uX6/tDj2cIhRXNUldEfBvxXcUTOANxDgR2MSOO/WcAIvLHZkX YyZ/4wV5+WuY6rNG/wLqUPC+5+ieJLFQERyh/X41Hw== X-Received: by 2002:a2e:9802:: with SMTP id a2mr2036742ljj.427.1632948377858; Wed, 29 Sep 2021 13:46:17 -0700 (PDT) MIME-Version: 1.0 References: <20210928235635.1348330-1-willmcvicker@google.com> <20210928235635.1348330-3-willmcvicker@google.com> In-Reply-To: From: John Stultz Date: Wed, 29 Sep 2021 13:46:05 -0700 Message-ID: Subject: Re: [PATCH v2 02/12] timekeeping: add API for getting timekeeping_suspended To: Will McVicker Cc: Russell King , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , Linus Walleij , Alessandro Zummo , Alexandre Belloni , Thomas Gleixner , Lee Jones , Geert Uytterhoeven , Saravana Kannan , Android Kernel Team , linux-arm-kernel , lkml , Linux Samsung SOC , "open list:COMMON CLK FRAMEWORK" , "open list:GPIO SUBSYSTEM" , linux-rtc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 1:01 PM Will McVicker wrote: > On Tue, Sep 28, 2021 at 8:42 PM John Stultz wrote: > > On Tue, Sep 28, 2021 at 4:56 PM Will McVicker wrote: > > > > > > This allows modules to access the value of timekeeping_suspended without > > > giving them write access to the variable. > > > > > > > It's important to cover "the why" not "the what" in these commit > > messages, so you might add a note as to what code will be the user of > > this (the samsung/clk-pll.c code changed later in this series). > > > > thanks > > -john > > Thanks John for the tip. I will try to be better at that in the followup. I have to remind myself regularly as well. :) Apologies if my quick reply above seemed curt (as it does to me re-reading it now). Wasn't my intent. > For this specific patch, I am adding this new API because the Samsung > PLL driver (drivers/clk/samsung/clk-pll.c) currently is using the > variable 'timekeeping_suspended' to detect timeouts before the > clocksource is initialized or timekeeping itself is suspended. My > patch series aims to modularize the Samsung PLL driver. So to keep the > driver's functionality intact, I need to add this additional API. Sounds good! Another small/medium suggestion: Since you're adding a new interface for non-core users of timekeeping_suspended, it might be good to switch the other users as well (seems like just drivers/clk/ti/clkctrl.c and kernel/sched/clock.c), then also remove the extern in include/linux/timekeeping.h (so there's one consistent method to access it)? I know it's a sort of scope creep, so apologies for asking, but it would make the series more attractive if it's not leaving something for others to clean up later. thanks -john