Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2451538pxb; Sun, 28 Feb 2021 01:34:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJs5uhJUk95s+gRYGj3M5v6SD4uobTv5El6MeOmna0+qSqVGyYjDUhmkIlDnS7mDPrVbgb X-Received: by 2002:a17:906:7194:: with SMTP id h20mr8893682ejk.154.1614504848133; Sun, 28 Feb 2021 01:34:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614504848; cv=none; d=google.com; s=arc-20160816; b=vozuFYZl9nm8MVhnTr0X2AFEvTSio3ma3vLwoNubRyRuQ35CV+6gONZ36rpfCT91vO F6hqpomfGiT/ov83MmV6EfW/Lnn6d2QAeGMZLAjVwOhEtO87kM9HGEzMxkz76h93lRnD Bu9Cu8d5+ZISNRmUlKOq/YtlCwkG2k34a/FmXusLxI9x4sAvjIX8XVJHr0XL6Mg7C6Ga PkM4VCmlNJPSOD14qVmnalR4J/tz99xP39l7Qot6STk6NMDfvVShkq8WAIZsOLir5o6c Qmcf2WlrcQNpdVCocH9Vxq7NX/pifbtgG9kFyS8QeHVznHWupPNKpNTTcOngkF+QF4nJ 6N+g== 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=GAazO+nBXMsT103snH4x5HkngEVfAp+qpt118APbvvQ=; b=tSC6jEnqlgj753r21WaK+zcQUBAcHpNRxl6jMsfk5nFhmiiTqfVz/WDPsrLXhPemCc UIp5hMTWMeZhMlD3MbshsRvYDJLMW1M3RYu7SmuXbVx2/x/rxsFzT78af+ydo0Xs63gM cWsajT6w6VEQeM9SXEXapCFQfd3Ltl9bHE6nI8GOM/3OEwPeDkjNTZ3dO9AqQB6udzkQ 1UUrGp8g/pfQr6Svw5uT2M8abLJqCFgvrqgwF04h4xs0lbkRdiNMHb0p+i+IYlEOqGUc ovd1bOUUutL8Fmjj9uXfL9vK9NSMEczyJjU/T5SqEiGWklUgfGPWdIRjcLnRJxzkJy97 XseQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pIlnhbit; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r27si2080839edw.299.2021.02.28.01.33.45; Sun, 28 Feb 2021 01:34:08 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=pIlnhbit; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230434AbhB1JaE (ORCPT + 99 others); Sun, 28 Feb 2021 04:30:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbhB1JaC (ORCPT ); Sun, 28 Feb 2021 04:30:02 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3587C06174A; Sun, 28 Feb 2021 01:29:21 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id g20so7755715plo.2; Sun, 28 Feb 2021 01:29:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GAazO+nBXMsT103snH4x5HkngEVfAp+qpt118APbvvQ=; b=pIlnhbit+gM35+aDuyaV5NeVvHNrbwwCD519PkxP2XwUrwEMWghbyMFj2G81Pemiya wlzNjlP+6QYBGITCINqjk5x/iXAReoRWjIsfEXuXFjT74VZ+AFjTWgfTN278mNbUb++G g780RJiEwZ73STzZ21Ik2Zi+8iTToUgEpapCgbASRnSpdvTD8pRhC160CeR/5ATUJgp+ kqOvupwz6T3AxByYib9YrSN/44zOJbOD2dREGBrfkhmKOtwbs1ealfAV/F7oAkltP/BZ HX4X3DR/o1THm7otzSeLFrZLcpp3A9AK95tDeS9KDWIHhdd+BOUXJag4JvEphmqxlWoL BsCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GAazO+nBXMsT103snH4x5HkngEVfAp+qpt118APbvvQ=; b=dGTjgElEMzv+SNwQ1AqxA1xNMHCut3kRGeYRCemzMY82uA5MF6869TOALuIrJ3f+1V q/BOhLi2op98TfKLrB44OovQ9pV8rDFSIbZ7w2j6Jx3wAw5QTaRngJ114UsldxTdwqQo SwImZprATzl4JzDo9POeNDsEjRmok4SNoi3rOuZ/kYPSiYEURnJrnTeFqPlDfE8wQdZB phamKdcFlyhWK5uZrcyBg/OJjiwTcHF+6wPY0ERv3Bj8hl0rGb4U9/TiahoQFW6sGhDt 0oMVeIPIiQIbOYXy16M84pd3E3Pg3wbD1QoIWo5EIXwJgsbcDvh+bqVXw/nVrEt5rsoB yIxw== X-Gm-Message-State: AOAM530YuXwynqGQ98Mc+xWtwE3g15dHsA7KkwEEqBmy2Qj4tZDt1ZdO LRPHneCmAQlC4f6sGOs8icRUn1lHCQZ7jzzhKaM= X-Received: by 2002:a17:90a:db49:: with SMTP id u9mr12118165pjx.181.1614504561428; Sun, 28 Feb 2021 01:29:21 -0800 (PST) MIME-Version: 1.0 References: <20210226141411.2517368-1-linux@rasmusvillemoes.dk> <20210226141411.2517368-3-linux@rasmusvillemoes.dk> In-Reply-To: From: Andy Shevchenko Date: Sun, 28 Feb 2021 11:29:05 +0200 Message-ID: Subject: Re: [PATCH 2/2] drivers: misc: add ripple counter driver To: Rasmus Villemoes Cc: Greg Kroah-Hartman , Rob Herring , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Arnd Bergmann , "linux-clk@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 28, 2021 at 11:07 AM Andy Shevchenko wrote: > On Friday, February 26, 2021, Rasmus Villemoes wrote: >> >> The only purpose of this driver is to serve as a consumer of the input >> clock, to prevent it from being disabled by clk_disable_unused(). > > We have a clock API to do the same (something like marking it used or so) why do you need a driver? Example: https://elixir.bootlin.com/linux/latest/source/drivers/platform/x86/pmc_atom.c#L365 If it's a DT based platform I think you can make it somehow work thru DT. -- With Best Regards, Andy Shevchenko