Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1563423imm; Mon, 3 Sep 2018 03:53:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaaeXQ6ZfR2FaXTTo1C1YY2CIFjpS8+sO/xNIk7H9qr+hNv0518QO1ZMJpAu58IhZ4iNd/m X-Received: by 2002:a17:902:290a:: with SMTP id g10-v6mr27886768plb.110.1535972027496; Mon, 03 Sep 2018 03:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535972027; cv=none; d=google.com; s=arc-20160816; b=qcpU9f1nRXRsIDWjsLCiAPNWXI/xU+FW+0I+bYXkoBt0XaUk/m++UKVA7xxWxGMqYe JT6Qha7m8fXi0rw4UFQBUzSlUuIxGUdcMyimujMn5ckPzYhcGHxT7fKu1Zbtsa+OB4j9 p5jd9vLucVVEUcq1koOoURUgKVL1m9L8sn8prxUNzyROIyr/YAeFt0H5/N/B5lq4/GEN Rgt19gQnzIH0NAzmkYkv3ETkjbxgMqIxMfXum/DkvnY7z/PQ8kvYdCCHqruaaKH1PLEX uxeTgityzzn/eHFWHVn/Li+r8r+obm5vzfwB7HPCW6ps2gzzmQd01OLzUok6ZwznhXTx VUiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=psd6cCpoOsidVvxseliFUKnVXyhky6VCVOIrn2uEZG4=; b=N4e1n/3/xpTgNzED1VkMGyeh6WumHQcvvbA/B0C/10MmAC2tPWo6VdMbqYxvvXntkO JZWcOSk1Mjl3M6nByh9Gcr0yzu2v7R3zpBCg/RuNMh6zlFuSsnTSLhYjVovO3GoYf8gg wtCxOUkncL5v4U7Ckf3BOq2SAg6R9w82PpQcBfJKYQSQfUs+RrxLZBH4k9gURTwAplGW +z965/8vAEKjzYdtel+QiUiGAb5oDv7oMcNa/fCvUB9iTGsss/gG2AYjJ0XTp8ECZVxf OGIBlyUjRbL6x/jv7fQcHFSOGzq1mWXw8BjUc0SbAAT0c9/THqHuJe/1ut84AFDQuQbS 6C7g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a20-v6si16866399pgi.184.2018.09.03.03.53.32; Mon, 03 Sep 2018 03:53:47 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727066AbeICPME (ORCPT + 99 others); Mon, 3 Sep 2018 11:12:04 -0400 Received: from mga09.intel.com ([134.134.136.24]:58718 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725943AbeICPME (ORCPT ); Mon, 3 Sep 2018 11:12:04 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Sep 2018 03:52:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,324,1531810800"; d="scan'208";a="71208172" Received: from linux.intel.com ([10.54.29.200]) by orsmga006.jf.intel.com with ESMTP; 03 Sep 2018 03:52:27 -0700 Received: from [10.226.39.0] (zhuyixin-mobl.gar.corp.intel.com [10.226.39.0]) by linux.intel.com (Postfix) with ESMTP id C5DE35801AB; Mon, 3 Sep 2018 03:52:24 -0700 (PDT) Subject: Re: [PATCH v2 02/18] clk: intel: Add clock driver for Intel MIPS SoCs To: Stephen Boyd , Songjun Wu , chuanhua.lei@linux.intel.com, hua.ma@linux.intel.com, qi-ming.wu@intel.com Cc: linux-mips@linux-mips.org, linux-clk@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Michael Turquette , linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland References: <20180803030237.3366-1-songjun.wu@linux.intel.com> <20180803030237.3366-3-songjun.wu@linux.intel.com> <153370742214.220756.2039365625963765922@swboyd.mtv.corp.google.com> <571d2d40-8728-fa7c-5d89-73d2a7b6293b@linux.intel.com> <153539697928.129321.2605078315090527674@swboyd.mtv.corp.google.com> <65a8518b-8fd8-847b-f952-0370be3d786a@linux.intel.com> <153573558557.93865.3835503209987304514@swboyd.mtv.corp.google.com> From: "Zhu, Yi Xin" Message-ID: <3fcc4615-eea8-8cb7-987f-c58ab9683e0c@linux.intel.com> Date: Mon, 3 Sep 2018 18:52:21 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <153573558557.93865.3835503209987304514@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/1/2018 1:13 AM, Stephen Boyd wrote: > Quoting Zhu, Yi Xin (2018-08-29 03:34:26) >>>>>> +} >>>>>> + >>>>>> +CLK_OF_DECLARE(intel_grx500_cgu, "intel,grx500-cgu", grx500_clk_init); >>>>> Any reason a platform driver can't be used instead of CLK_OF_DECLARE()? >>>> It provides CPU clock which is used in early boot stage. >>>> >>> Ok. What is the CPU clock doing in early boot stage? Some sort of timer >>> frequency? If the driver can be split into two pieces, one to handle the >>> really early stuff that must be in place to get timers up and running >>> and the other to register the rest of the clks that aren't critical from >>> a regular platform driver it would be good. That's preferred model if >>> something is super critical. >>> >> Just to make sure my approach is same as you think. >> >> In the driver, there's two clock registrations. >> >> - One through CLK_OF_DECLARE for early stage clocks. >> >> - The other via platform driver for the non-critical clocks. > You can use the same DT node for both parts, no need to split the node > into two and use syscon here. > Thank you. Will use CLK_OF_DECLARE_DRIVER to use the same DT node.