Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2452555pxb; Sun, 28 Feb 2021 01:36:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxi6yR4xCYnqn8o+xYCi06grUDUXf8EY+lIaEGxA2fVm7P7DkAq2EGVw4dsGAFl2/qqF++v X-Received: by 2002:a17:907:6005:: with SMTP id fs5mr10844842ejc.184.1614504985600; Sun, 28 Feb 2021 01:36:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614504985; cv=none; d=google.com; s=arc-20160816; b=ZKIt41/pVRoAoV7mf3I5XSVXFlLV97wNQlRtDanS29tsRKhYbGvw+TnciUvCuyPDBS ZsV10nELDaZ6EEXnLHVointyc9qGvOeN1rVdJM1EB1ZIWGObHMFnztpruqT7EK+P+lpy RhyYQ8FyfBMrFj27VFBikfjzReBJQeWPzCF5KFZaFjC3YjJ0Q5c1+Hah1IhhhlpZDnHI 8/+KgoQMuA7fvQhuEtwkfc23gfyhkaccDaez4bpRqqfX7JyAT70OQbArtzPdQ3782CJA eZBjYfkqVWXvjvxU4NCJAiS7S8QUHbXLhW5kcYo1+slCaP6Bsp1yfBcV8uMr8U4PKeSk ztBg== 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=CQcNXul42OdjZ/11X+dsEbe6I5ZkvgAlKEhd5f4JttI=; b=j0UeM9YKQnKTFJDF3hvn19o869KWcQAu+DtW7RimyENkWzaJeCAhsrU9HEnR0T0nei Ns5bZGj+MWWUZNl9PSIThrXm6o6tPR0zpYJl/5DNjwooHVDgTS+qfqg8QIhCAmknjXRe V3P59ZL1YMeQpr7EpA/qh3w3Yt3OnFp+zHq2VynrvWcZmm/jaL8sZlZME+YqlJmq5NB+ 85Utw8swOS5FJ+5BbJq6Fr2cVuGH/hHW+nSsC0ZozJt+PixLWdnbmLrASpuFOFytUVYB JI/WaFG6zEVq3aDFKz43hYbltroimqDw0O3YhIOT8ZWwX3Tm+y65j+x+hFik9uJLUtz3 LcfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YseBDxj1; 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 y43si5193602ede.375.2021.02.28.01.36.03; Sun, 28 Feb 2021 01:36:25 -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=YseBDxj1; 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 S230454AbhB1Je2 (ORCPT + 99 others); Sun, 28 Feb 2021 04:34:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230184AbhB1JeY (ORCPT ); Sun, 28 Feb 2021 04:34:24 -0500 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94FFCC06174A; Sun, 28 Feb 2021 01:33:44 -0800 (PST) Received: by mail-pg1-x533.google.com with SMTP id b21so9150575pgk.7; Sun, 28 Feb 2021 01:33:44 -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=CQcNXul42OdjZ/11X+dsEbe6I5ZkvgAlKEhd5f4JttI=; b=YseBDxj1XmfQfRHJIiRpyFyEQaAdJ1XSqsmj/a3cNrAH4rTo05OqSEqN709gYJZ7nj CL8zUmadfUm/18uH9fwD6EiJ9wxI9Wey8/+vTEkO62Y245p88m1WSQNwUy1fHQtvlY98 vaARp4jdXcxYHuVpfJcqLhw266NtjaJzK4ohEQD8T3B47414tJaU4KcWeayRc/Ru9aq1 sl7XFi6RFKKuZCJKAs/opsBVTYTZce1MlhkMiMTWRM1rx8D+bpoyVB8c/8423919doqb nq/R0st/DzAX8fB2Ff60aEgD4UtjOCMG2P5MfyxFKJROPsTQ7GMrGJnizh6y2rGijJSA S9bw== 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=CQcNXul42OdjZ/11X+dsEbe6I5ZkvgAlKEhd5f4JttI=; b=D3ryjpc6vDKtIGWrnwup5puN0LkrQEbUbFuUdqog0VBX2H3bJWoTZAIepZzmUgDj59 9APoU6N6Ycs1b1sffzI48bDewYA4T1SDOqPSs42BVAN/5oX04f9kICblxXv93Wr5QGhU 6iQVrfPzPhQ3TY0/ro8XVhb/TCwWrdrPHxtChqE3zhrNJfG32dcait05uAw5ANXRNb/M CPegHA/976FbEFwHJnz4W7GtPQ7o8s0C0z6uALX/owTaSYy7vrCwDXDxyiMgFDkv0ndQ m8n4atwW5XaNjGhzSgrGeNKF/0sfXBRuph+IkIMizWKZT85TqVnCdRnV8j2f444Wn47T lpKQ== X-Gm-Message-State: AOAM531jtQ5yl0RjxtsyyxdRzgja8ogo5oVujLuOhOKvDpE2Tqcmqmox Xi14iCKCR/wkydnZ0cF2q1v4mxS4s8F2qfbYjms= X-Received: by 2002:a65:5ac9:: with SMTP id d9mr9365056pgt.74.1614504824125; Sun, 28 Feb 2021 01:33:44 -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:33:28 +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:29 AM Andy Shevchenko wrote: > > 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. Okay, briefly looking at the state of affairs [1] seems like you need to hack it into clock provider. [1]: https://elixir.bootlin.com/linux/latest/C/ident/CLK_IS_CRITICAL -- With Best Regards, Andy Shevchenko