Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9323866imu; Wed, 5 Dec 2018 02:58:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/WAmCdT87/GLNrRncVgN/ocqkINqAr5N7/ymSeQlVgx9klZc7L0ou+hZR4hKZud1dyvFq2o X-Received: by 2002:a63:9b11:: with SMTP id r17mr20136015pgd.416.1544007515789; Wed, 05 Dec 2018 02:58:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544007515; cv=none; d=google.com; s=arc-20160816; b=LJp3bWYMwy1iTJjyxTTO6r61E4E/BmfD32kk4jaYlF63i9/DQVGz99/TL6kueJioVF RVW81rl2hjRfsMscBrHvzOAj25wGLSuCgFd6QkbIVmGyhkp+UpLhr2olwbdubNMnGdlF l9SQMtNvNhg3e6t1N5ntVBBh5gLel2VeJ1J07Blc+h7mLb9LtHRqnr3XA9tdMxY6tdMk NTupYswpD7h2VdqobA6sPYH/9AZz9BnL2fP1kATY9NI6Hi10y2iqKSrXSAkM/ktytNny 3kK/tt5rEMET3Dvl2MWLoVN25g0gybP5AzGagX41o46tBdoCuhCJbAOljhmNgzILwLY3 x4yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:subject:to:dkim-signature :dkim-filter; bh=IryPAHkxJo8GHjC+5JEgNPTLsL1RkR9VDqsE3lfdh9w=; b=R5Wkk5hNpLfEEqnQhTRzEUxLjsRl3XHazp+xPjedm/RHaeVHZCNqDz149ZLfBMNByC lIrx0UQAaOMzqrW+Q8ig8kFLJmgEoiCcPxkkHTfoTsdcWXrUF4R+sRgjc92mwq2kcyB2 0CLPLBp2Iv+LIRuLMKeDOlERMCBgPELswj4PGj//zabSP8GEew42euHJV4+UgAdD1qoo 2kkvOxeUYYRGEVdQCTdl27DadbrH4GYIGEzs+JpM+3yuXS7EvkYckGXfYfmi5PcPWNX9 OnbV4+LvuhJYqP6MOkDR3hstIzbES79a6KDiKwJi50pYBkiQ7yk7DeDuz4kyXrbq8w4p 0S8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=OL29Jmsi; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si17163338pgs.94.2018.12.05.02.58.19; Wed, 05 Dec 2018 02:58:35 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=OL29Jmsi; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727267AbeLEK5o (ORCPT + 99 others); Wed, 5 Dec 2018 05:57:44 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:64038 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726937AbeLEK5o (ORCPT ); Wed, 5 Dec 2018 05:57:44 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20181205105739epoutp039a14101e4bf5c38a022f909ee3e45333~tapqNIZOj0563505635epoutp03x; Wed, 5 Dec 2018 10:57:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20181205105739epoutp039a14101e4bf5c38a022f909ee3e45333~tapqNIZOj0563505635epoutp03x DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1544007459; bh=IryPAHkxJo8GHjC+5JEgNPTLsL1RkR9VDqsE3lfdh9w=; h=To:Subject:Cc:From:Date:In-reply-to:References:From; b=OL29Jmsig8GK9+HDgthxj21m+0JsA0laT7m1FP3fK8JIxC+8MYlbWNxN7CXAu8lq9 nzgmzVTP2UkIxxEUDASaFeHRPJRw850b0n5ehBlPn6U3ccmNW/K3Xh8pr/y4/GdcQw ZC3pHEsOa1AU3UCPOqqYuYvcTDYpLzX1IU9WemBQ= Received: from epsmges1p1.samsung.com (unknown [182.195.42.53]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20181205105739epcas1p39922d0d40d5b2f469d1156f916a7343f~tapp9mlt-2450324503epcas1p37; Wed, 5 Dec 2018 10:57:39 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 71.B1.04058.22FA70C5; Wed, 5 Dec 2018 19:57:38 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20181205105738epcas1p1795484fe370d1e287585e1a8d66ff02e~tappnG8kh2462024620epcas1p1T; Wed, 5 Dec 2018 10:57:38 +0000 (GMT) X-AuditID: b6c32a35-e37ff70000000fda-e0-5c07af22be17 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 6B.69.03601.22FA70C5; Wed, 5 Dec 2018 19:57:38 +0900 (KST) To: undisclosed-recipients:; Received: from [106.116.147.40] by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PJ900ABFFRXRO10@mmp2.samsung.com>; Wed, 05 Dec 2018 19:57:38 +0900 (KST) Subject: Re: [PATCH v3 5/5] clk: samsung: exynos5433: add imem clocks Cc: Stephen Boyd , k.konieczny@partner.samsung.com, linux-samsung-soc@vger.kernel.org, Chanwoo Choi , Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Sylwester Nawrocki Message-id: <3bb9f4b5-e069-79fe-6ab3-2750c6191e57@samsung.com> Date: Wed, 05 Dec 2018 11:57:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-version: 1.0 In-reply-to: <154394884525.88331.3007383362383800806@swboyd.mtv.corp.google.com> Content-type: text/plain; charset="utf-8" Content-language: en-GB Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAKsWRmVeSWpSXmKPExsWy7bCmnq7SevYYgy9TzC2uf3nOajH/yDlW i759/xkt+h+/ZrY4f34Du8Wmx9dYLS7vmsNmMeP8PiaLpdcvMlm07j3CbvHv2kYWB26PNfPW MHpsWtXJ5rF5Sb3HwXd7mDz6tqxi9Pi8SS6ALYrLJiU1J7MstUjfLoEr4/qKiWwFtwQq9u05 z9TA+Jyni5GDQ0LARKL7a1UXIxeHkMAORomdrTfZIJzvjBIPdm5k6mLkBCvafOA/K0RiA6PE +58dzCAJEQEZibmzH0Ml7jNK3NvXwwiSEBZwlViw7RxYglmghVli4Y5JYKPYBAwleo/2gRXx CthJrFxzghXEZhFQlbj86hsLiC0qECHRcX81G0SNoMSPyffA4pwCARI7j+xkB7GZBTQlXnyZ xAJhi0scu3+TEcKWl9i85i0zyGIJge9sEusOX4D6wUXi79/TrBC2sMSr41vYIQEgLXHpqC1E uFpi1/ZuqN4ORomWC9uZIRLWEoePX2SFWMAn8e5rDytEL69ER5sQRImHxKcZndCQmMkkse/t FfYJjLKzkPwwC8nds5DcPQvJ3QsYWVYxiqUWFOempxYbFhjqFSfmFpfmpesl5+duYgSnGy3T HYxTzvkcYhTgYFTi4ZWYwhYj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rJr47PBnn7SceeqV/SmvqlAyG53d+a1zxUD7nO1m7 /XxD+L7AnklxSizFGYmGWsxFxYkAt3eVzZYCAAA= X-CMS-MailID: 20181205105738epcas1p1795484fe370d1e287585e1a8d66ff02e X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20181204165318eucas1p2dccd5382ee8b9f4da8c3076fb56607ee References: <20181204165248.17572-1-k.konieczny@partner.samsung.com> <20181204165248.17572-6-k.konieczny@partner.samsung.com> <154394884525.88331.3007383362383800806@swboyd.mtv.corp.google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/4/18 19:40, Stephen Boyd wrote: > Quoting Kamil Konieczny (2018-12-04 08:52:48) >> + >> +static const unsigned long imem_clk_regs[] __initconst = { >> + ENABLE_ACLK_IMEM, >> + ENABLE_ACLK_IMEM_INT_MEM, >> + ENABLE_ACLK_IMEM_SSS, >> + ENABLE_ACLK_IMEM_SLIMSSS, >> + ENABLE_ACLK_IMEM_RTIC, >> + ENABLE_ACLK_IMEM_SMMU_SSS, >> + ENABLE_ACLK_IMEM_SMMU_SLIMSSS, >> + ENABLE_ACLK_IMEM_SMMU_RTIC, >> + ENABLE_ACLK_IMEM_ARBG_TX, >> + ENABLE_ACLK_IMEM_SMMU_ARBG_TX, >> + ENABLE_PCLK_IMEM, >> + ENABLE_PCLK_IMEM_SSS, >> + ENABLE_PCLK_IMEM_SLIMSSS, >> + ENABLE_PCLK_IMEM_RTIC, >> + ENABLE_PCLK_IMEM_SMMU_SSS, >> + ENABLE_PCLK_IMEM_SMMU_SLIMSSS, >> + ENABLE_PCLK_IMEM_SMMU_RTIC, >> + ENABLE_PCLK_IMEM_SMMU_ARGB_TX, >> +}; >> + >> +static const struct samsung_gate_clock imem_gate_clks[] __initconst = { >> + /* ENABLE_ACLK_IMEM */ >> + GATE(CLK_ACLK_AXI2AHB_IMEMH, "aclk_axi2ahb_imemh", "aclk_imem_200", >> + ENABLE_ACLK_IMEM, 24, 0, 0), I don't think that clock will ever need to be disabled/enabled, so I would drop this definition. The clock will remain in its default state after reset (enabled). >> + GATE(CLK_ACLK_AXIDS_SROMC, "aclk_axids_sromc", "aclk_imem_200", >> + ENABLE_ACLK_IMEM, 23, CLK_IGNORE_UNUSED, 0), > > Why is there so much use of CLK_IGNORE_UNUSED in this file? I suppose CLK_IGNORE_UNUSED is needed because there is no drivers that would enable required clocks. For some clocks the flag could probably indeed just be omitted, e.g. SLIMSSS clocks. I'm inclined to just define clocks that we are confident about and which are needed now. i.e. the SSS IP block clocks. So in include/dt-bindings/ clock/exynos5433.h we would have something like: +/* CMU_IMEM */ +#define CLK_ACLK_SSS 1 +#define CLK_PCLK_SSS 40 +#define IMEM_NR_CLK 41 The other clocks could be added later as needed by someone who has detailed knowledge about respective peripheral blocks. -- Regards, Sylwester