Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2410767imj; Mon, 18 Feb 2019 05:37:52 -0800 (PST) X-Google-Smtp-Source: AHgI3IYB4MPAnJhT2fg2i8/snNu6QGs+DxTeZDAiuJeNY3Nk2/zcCBy/FucSWQZGQkGgI5u5JS+f X-Received: by 2002:a17:902:b416:: with SMTP id x22mr983819plr.285.1550497072437; Mon, 18 Feb 2019 05:37:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550497072; cv=none; d=google.com; s=arc-20160816; b=PlXE5h0Rw2ko8Y3hLk+TNN43et+SVGAvmfUxwrzFStsXsMrAHjHjWUo8cSnpHHv4wk AxWFCK3hifQwIb2OBUodPlrZvKgUdbPdFEMmJcXjRWC8uh8uvk+k6aVg/yUb8MMo+zFP vFMFY6iYiaAL9pU/w8fDGnJBmQDovukTzyuv+RqmgAjwdScEVpkwizfJMef+kDuvW8R3 9K78y3MZcPVC1v63Sk8c0J1Kmbr55xSvPJNFDgGIAuXF6M9ugAKmdc1CcYlxUv2T2peW rrToH1vO0XzJn7vwWBJ5ZL0Xo7vTZ5wTodtIDnVuxkqytV4CF8/AjqDY0odMlFSpuUQZ OKqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=c2E49QAVohFq0rOCe1RTzJv1jXR7Acf6VdRdHZMGLfk=; b=sKQ2plR+VBWJOwAfU3CsGvBuRVYEBebcncRH5aqp1t/mf33HeC8pfK4GyBG5yGDtU3 /9U+a0KPcq/2pkz+QnL4rT3HX9ScYG9BGg4qkMPUrTv7HMW7mjUIj7dX16Se/6loaCol oIlVk/lZGIXzDD6Oc0WtggjcIDQgOgYtGkWM3CeJLOEtSzolrFnS6nrItBkNufYkIBnH cxQobOWesN33WUCBbLqtrPDok7aB8Sxg4sTbthuECfmQTwJb1nyMSqs/KxPzP9QiD0Wd NdgBJsJSULuNvKVidAmcpHbHZK+KYDRsmyAhyiLem8FuHcNxjV7HRjewhG9UvuFrXW9m Bqbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb2si15896997plb.201.2019.02.18.05.37.36; Mon, 18 Feb 2019 05:37:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730536AbfBRMyu (ORCPT + 99 others); Mon, 18 Feb 2019 07:54:50 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:37879 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726875AbfBRMyu (ORCPT ); Mon, 18 Feb 2019 07:54:50 -0500 Received: by mail-qk1-f194.google.com with SMTP id m9so9873962qkl.4; Mon, 18 Feb 2019 04:54:50 -0800 (PST) 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=c2E49QAVohFq0rOCe1RTzJv1jXR7Acf6VdRdHZMGLfk=; b=BsXbZ92SrGci/ZAkYjlcHv2vrqk5uwhsqb1/8NQHY7EJdEzVc1teymxtz4b0hmb4bB U4XELcx0yyH/et03HQpvoQoAXYobrTW13Ahq+SmrszeHHqCF/f+OdGnT/ZRVu2FiZOtc YW1C3A045cgf5r8jetg3pXJKKEv9odI2NdzGd6I7JmKsLPuAv/U5fNuZFEhZkSzwKGVR +QEdKWGNRR1u3lfToZaAEpHRQ1BAtHbe5AYf4izOtPtia+m3fAl4zCeAZjVxu93a5K8W KzqhXwBAkmT9VCv6/g977AoQWR9aMeMiHtUEl/E40x/8DW1AY4DgjoO8xrhq/zo3vOA0 4q5g== X-Gm-Message-State: AHQUAuaDsEw246seYj8spMrwa4fh8bh5WEKXDrY9FcDmKaZNU5Q40GOA m8cXfc70isTMQEATh3vKJ98WFa3ieq5Xpu4NE64= X-Received: by 2002:a05:620a:12a5:: with SMTP id x5mr16657260qki.291.1550494489786; Mon, 18 Feb 2019 04:54:49 -0800 (PST) MIME-Version: 1.0 References: <1544604495-4082-1-git-send-email-fabrice.gasnier@st.com> <1544604495-4082-3-git-send-email-fabrice.gasnier@st.com> <9e0ee154-a399-9bff-3beb-adfd9d6c6fee@st.com> <47a3fe9f-8adb-8f47-e7c1-342f8fc318aa@st.com> <01d49f11-a68e-1674-e6b7-d1b87aa973c9@st.com> In-Reply-To: <01d49f11-a68e-1674-e6b7-d1b87aa973c9@st.com> From: Arnd Bergmann Date: Mon, 18 Feb 2019 13:54:32 +0100 Message-ID: Subject: Re: [PATCH v2 2/3] mfd: syscon: Add optional clock support To: Fabrice Gasnier Cc: Lee Jones , Rob Herring , Alexandre Torgue , Maxime Coquelin , Mark Rutland , Gabriel Fernandez , DTML , Linux Kernel Mailing List , linux-stm32@st-md-mailman.stormreply.com, Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 11, 2019 at 5:32 PM Fabrice Gasnier wrote: > > On 1/28/19 2:20 PM, Fabrice Gasnier wrote: > > On 1/16/19 4:11 PM, Arnd Bergmann wrote: > >> On Wed, Jan 16, 2019 at 3:10 PM Fabrice Gasnier wrote: > >> > >> What I mean is that nodes that listed as 'compatible="syscon"' get > >> probed by the syscon driver even when no other driver references > >> them, and that in turn would acquire the clock, right? > > > > When no other driver references them, nothing happens at probe time on > > the clock: no calls to get/prepare... the clock. > > > > => The clock will remain unrequested & unused until another driver calls > > one of "of_syscon_register()" variants: > > - syscon_node_to_regmap > > - syscon_regmap_lookup_by_compatible > > - syscon_regmap_lookup_by_phandle > > > > When another driver references them (e.g. one of the above calls), then > > it will acquire the optional clock and use it, e.g.: > > - clk_prepare() upon of_syscon_register() variants > > - clk_enable & clk_disable when accessing the registers > > > > I hope this clarifies. > > I would appreciate to have your feedback. Yes, I think that's all we need here, thanks for the clarification, and sorry for dropping the ball on this again. Acked-by: Arnd Bergmann Arnd