Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp880266pxb; Wed, 27 Oct 2021 14:21:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVa5yXxpJDAeoyLnhAmmsUPPVY7tX9OlnAJQemcjc3smha+fnpO2M6TBgtoy70BicdmeWn X-Received: by 2002:a17:906:646:: with SMTP id t6mr34684ejb.209.1635369693702; Wed, 27 Oct 2021 14:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369693; cv=none; d=google.com; s=arc-20160816; b=dG1j9foD67f6Z3I0HqlhlXhLR0fZnjyNwwKIUXTMgfKbK16e63XT40zAs4pss+QS/r +lzS1vaSHMHvs7zLGKSkJR+NVCzHhCWG1aJFa54yEWCq9up+yRtnKopFfr9pu1ZaU0aR KZsqi7EiG9MoA8d3bIGjRLltFQxctGRuuzV33TF81Kz8kV+m0WS0mwssAXlkDl7O7N9r Z946+vAekxutqgS6G6A/MQYMRLlqVAX/HEjwYPtecAN7snA0ve133OzqtVVJnKa/AQgA PYZ4Ztwfe3BKbEhGetvX30UWXlw+KRmkRC5dbaOvFOGjsp8Dd/DaEgFa4fNLn/RUIb3E W8wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=IaDMvDU8TjrBQWzPz1vQnNN0aLkCJMSOVyAxvL30ICQ=; b=V701/oBiInNaVqobJ/p1T+IIg/2H1NeXaP8rgZcww1feSMbYflythm6qxRWfwr67DI HNMP/JhTILrxs9PBeqXxel774YtoYx6rM57uvgjMOlkTQoe9KOTiZZ2r8meDKPuQXhyl IdJNnkz1K2+8i0anceoopsmFswuHr51tCGdW7CP0aGa+k92V7r620eoKgMOmkZCbJ5yn k1h/tQwtx8IXIxjwP/vE56leqwhXpYHCCfDjgQTMk6UjrMwKs4h5DGrkP0wD8jKoxepE 2R86eQDFbANIJOWV/HTABs8nBkCy9kS6bessqpYzBPqKlR5f5RpYmFFUb/JbmIu7kH0v DKJw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si1414721edc.223.2021.10.27.14.21.09; Wed, 27 Oct 2021 14:21:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240117AbhJ0Jd3 (ORCPT + 97 others); Wed, 27 Oct 2021 05:33:29 -0400 Received: from mga12.intel.com ([192.55.52.136]:26461 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbhJ0JdZ (ORCPT ); Wed, 27 Oct 2021 05:33:25 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10149"; a="210203097" X-IronPort-AV: E=Sophos;i="5.87,186,1631602800"; d="scan'208";a="210203097" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2021 02:31:00 -0700 X-IronPort-AV: E=Sophos;i="5.87,186,1631602800"; d="scan'208";a="635661120" Received: from smile.fi.intel.com ([10.237.72.184]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2021 02:30:54 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1mffGT-001QWu-IZ; Wed, 27 Oct 2021 12:30:33 +0300 Date: Wed, 27 Oct 2021 12:30:33 +0300 From: Andy Shevchenko To: Stephen Boyd Cc: Emil Renner Berthing , devicetree@vger.kernel.org, linux-clk , linux-gpio@vger.kernel.org, linux-riscv , linux-serial@vger.kernel.org, Geert Uytterhoeven , Palmer Dabbelt , Paul Walmsley , Rob Herring , Michael Turquette , Thomas Gleixner , Marc Zyngier , Philipp Zabel , Linus Walleij , Greg Kroah-Hartman , Daniel Lezcano , Jiri Slaby , Maximilian Luz , Sagar Kadam , Drew Fustini , Michael Zhu , Fu Wei , Anup Patel , Atish Patra , Matteo Croce , Linux Kernel Mailing List Subject: Re: [PATCH v2 06/16] clk: starfive: Add JH7100 clock generator driver Message-ID: References: <20211021174223.43310-1-kernel@esmil.dk> <20211021174223.43310-7-kernel@esmil.dk> <163527959276.15791.14765586510805526101@swboyd.mtv.corp.google.com> <163529604399.15791.378104318036812951@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <163529604399.15791.378104318036812951@swboyd.mtv.corp.google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 26, 2021 at 05:54:03PM -0700, Stephen Boyd wrote: > Quoting Emil Renner Berthing (2021-10-26 15:35:36) > > On Tue, 26 Oct 2021 at 22:20, Stephen Boyd wrote: > > > Quoting Emil Renner Berthing (2021-10-21 10:42:13) ... > > > > +static int __init clk_starfive_jh7100_probe(struct platform_device *pdev) > > > > > > Drop __init as this can be called after kernel init is over. > > > > Oh interesting, I'd like to know when that can happen. The comment for > > the builtin_platform_driver macro says it's just a wrapper for > > I thought this was using module_platform_driver() macro? > > > device_initcall. > > > > Won't we then need to remove all the __initconst tags too since the > > probe function walks through jh7100_clk_data which eventually > > references all __initconst data? > > Yes. If it's builtin_platform_driver() it can't be a module/tristate > Kconfig, in which case all the init markings can stay. What about bind/unbind attribute? -- With Best Regards, Andy Shevchenko