Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp681129pxb; Thu, 30 Sep 2021 14:55:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUYYvOMyy7yvuyODmGgQPgmu2IIlaMXFkoi3904SoIBxN3G/Sd9PXf7nftvSmOTw/aVJHZ X-Received: by 2002:a17:90a:9a8f:: with SMTP id e15mr4987600pjp.198.1633038954386; Thu, 30 Sep 2021 14:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633038954; cv=none; d=google.com; s=arc-20160816; b=gPonRB4HiuiEMS3ig/FQNcCyBbA8r5voew49EpDYbHtuHzXoQM2Ux7vfBOHu839/Po OrLeQqzNVgeZkIBQGJp3KxnxV/oOHzrlJfx13510wZlIHba2HZ4kmqwWevZrJCdLFxSI MqsG9LGHA2KJuUrSnOgNznDgXIoIWhrHd0hxJgflIuPvNJspqvSpkkRrhzWl9td0oU6T RHdj+3VXEaUzCSBFng+1KxyrDYN8CmMo2YCuRhXor6cWHkYKBTZjWxH32gfi5oOSMA6u EpysvJ7X4CwYUeVW7ecOxS/oCvt+sk4Vdf8N1dI93QolQV2kd2no9HiO7rxIuNEjjKm5 RdsA== 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=57Llzgrk8lHt7Xo2P5Ng2+YQoTMIOMCchXp4xSgknMk=; b=dbxFXPvHk5T+svvuoFMSuMYmseOFUAyN39UgxU6c+k8qxGauAzMOLc8llymSUDmn9Q 2FuCYqi0bLsy6R4RK3/DuZ6QGzbHtp4t9fXw0KkTO8vPnfwRPBGgNdA6fJF62ezlgfjF IF/OhhKph4Y4TyOzglqkapTONM7QuMSkCqxeaO2uEKrxi6XqU6criEQw6BgfGarKP3v9 /AJYMpL5VIl4aN0QKJkupj0gU72S6AQuK7CWpLaWD5E2mQ2Ym7o6dFQPYPmgkCKEk6TD Hbzm5g1wEUmQyMtJUj2oc504Zex9PEMqMvzkwIGLvU4Xot/6l25e6AO+5yyWIiz72OLu fB3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=qCNHubRp; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u70si3223772pgd.76.2021.09.30.14.55.41; Thu, 30 Sep 2021 14:55:54 -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=@google.com header.s=20210112 header.b=qCNHubRp; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343921AbhI3Sda (ORCPT + 99 others); Thu, 30 Sep 2021 14:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbhI3Sd3 (ORCPT ); Thu, 30 Sep 2021 14:33:29 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8510DC06176A for ; Thu, 30 Sep 2021 11:31:46 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id g7so25010769edv.1 for ; Thu, 30 Sep 2021 11:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=57Llzgrk8lHt7Xo2P5Ng2+YQoTMIOMCchXp4xSgknMk=; b=qCNHubRpYsl2KShLEgoKcAg1XkM+flFqwpUFpfl2SvYHun9wUbaWdDYiyGjRW2Jsbd VdQPKfO3YnpxBAihCSVu2sOPft8zM0KJl86yBloC1fLvkwYL0S4GdRmD/0hggep9YwD9 M7eYKSXF1d4Kv0w91VICm13eNfB1YVm2D23lLykPv0sObzl+HuVastAApQNKEWHimaQv AMigogxGRcuLGSCvEbq9IsWR/Lk5JMywo3O3KQw8oWHJHJ3NkRLsy1Ii4ldoY8ObOIY8 mD0cGvrtuz/hGR+0Cx6y5rhF0voZzYTfUA/rJNTJTdCqeD2k4AGzWL1Uwpj/sK7tmQE6 tgvQ== 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=57Llzgrk8lHt7Xo2P5Ng2+YQoTMIOMCchXp4xSgknMk=; b=20F1stXjFk/HWu+4CVS+C30nHOoRC9HM9KiBdo3rcZhqrT23RapAV+7L2kNwVbE1FA O1rLAy9/3j6z/QnOqASk2tiGk8o1SD7RX3kJXdK9HUKUvfyAAJTNxFMgpOg1i+hUIPaE u8k5sFSMw13zI2iK6VS5Q9wMN3lDEId7hLEN4e14ed8WDzxkPg9OgFV2iGbKxk4gBeh4 g7kk8zuIEqvxdonzr7jTjYoGCDQe+x3n4931aesDx4G/btjRAT7ZIS0WZePtdDkxD61R UeVDW/m/gGHJldQD3TwBfYkGVH2+EMr/6I30D6wKvmTaNIm9f4Y1oug0J3jbdR0gC8PE wYCQ== X-Gm-Message-State: AOAM530ju2BC5qSlfhlC+tX1/x336STTyqLi7Vh89eu/ch7JO8WG9LS6 Oc7y1F1Cz+gFhf8XVw0l4nvfk/RKXFMDTkzlLFAqVw== X-Received: by 2002:a17:907:9908:: with SMTP id ka8mr905842ejc.164.1633026701077; Thu, 30 Sep 2021 11:31:41 -0700 (PDT) MIME-Version: 1.0 References: <20210928235635.1348330-1-willmcvicker@google.com> <20210928235635.1348330-3-willmcvicker@google.com> In-Reply-To: From: Will McVicker Date: Thu, 30 Sep 2021 11:31:23 -0700 Message-ID: Subject: Re: [PATCH v2 02/12] timekeeping: add API for getting timekeeping_suspended To: John Stultz 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 Thanks for the suggestion. That makes sense. I'll look into that for the next version. --Will On Wed, Sep 29, 2021 at 1:46 PM John Stultz wrote: > > 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