Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp191656rdb; Thu, 25 Jan 2024 12:06:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHj1qHR3fTtD60D1cmnbgPiKmNucm7A0F61Xbt6OU0usxNunJl4UTS1KM4aS426/PryixJr X-Received: by 2002:a05:620a:1489:b0:783:7e10:c524 with SMTP id w9-20020a05620a148900b007837e10c524mr278530qkj.28.1706213163206; Thu, 25 Jan 2024 12:06:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706213163; cv=pass; d=google.com; s=arc-20160816; b=edmEEeNlg1VScKHkKs20NnDTVIbDpT8S0cQFtuNtKSXfWRonXvX3p/kBJaHzkJK2+U FGha92AB2mlzDVOLmv29rhXG6njqFB23UmWOVakHpNLxJI3GG7dNvMx53oXWO436qbik /pg5icr+83xvc0h0WytVIS+qM5cRCgK87eEmPAf7yDx7UIb2WkLm8UDlHXfrvAK0o6SI Cs+HATAnYxWIw6VOqzMxcgasCFeTQL9hhQfs2IH1s+SZyuCYo7n2eIAZKvsTIwYJ2HYW bdGRJVmV0ehd967P7WN5/fvbA1uZrA0ypS+eGCUNVQ9V0w02dzYz5XRgQ6+T7c7GMuNu jjEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PSP1mwXt7pbVQqCb1c1AUqEAyMaE5dkMskynL1tp6dg=; fh=hiylwJf62x3AN+VnH5WTXwazjnhdGfrbrW/9T8bPNNg=; b=UfddkA9jBMDOhdF7uwV4A5ID1Hkfg3xfiE0YEk0R7kkLiDrYs5jnKSTFwTdGyYV+uS KkDz4R7im1cB95wjp9SLm3jiwNEf/8B6hKch2Gl9w1+cKXr1lh7ORS+F+GBSJFLmetvw 16YRClKJKhneP1+g187D3W3TDM85n13+Z9EpKXd8PY7mWm1bY/lcxMpIf2ni7Ua8jpVj 4WxcALy0hhKRZ0PhsfVWonZussov8nPgLLq0mmQWOfFKNcr/+8MX30USYnemVPu8luj7 ELTOjH15wbrIu+Yy9mwdWFONCvy9iDsIfr/vy4gDY8eU624uv3V5GD6ZHcLMrvIJLef4 LdJA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="Ch5/8b3f"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-39229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39229-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x11-20020ae9e90b000000b007834bf573dfsi13405801qkf.284.2024.01.25.12.06.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 12:06:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="Ch5/8b3f"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-39229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39229-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BA6501C24163 for ; Thu, 25 Jan 2024 20:05:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C52D13666D; Thu, 25 Jan 2024 20:05:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="Ch5/8b3f" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C73B134730; Thu, 25 Jan 2024 20:05:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706213145; cv=none; b=XfxHBL0xPIhv615+qqP55sFilt11Pi0Lo1UHbyC0C3t7eNhWdLts4uf+0vtXDJbT7N+jkvQ+JbepholezYduIhf8SfKZ/gaEJBEdiOo5R7wDdGTRPBfkYrK/WWR8g4OQBn4YmWvNYY2MZ69jTwhwIXA8n6c4CDwV/lQnMNWCP6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706213145; c=relaxed/simple; bh=WBaEFU0HD/ZpYZcSyEk08bbjDIygWcVOBE8OjlEUd3I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oTMcybqrLfcJV4DDvcsHh/qfrjS2mF7xspYv6Fwl6xRh0MV7TQ+4WkaBoNBeDmXXwEcBZ9FsAUI1lX8/TDOaap+L1vg/PUZfJPmec1MQHWnDfXBG1ZI3+GHMWcnn7pqvWGr/ojN4nV2ZXb7KQNvZoIT51lby9Em64ktbOovrSBU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=Ch5/8b3f; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=PSP1mwXt7pbVQqCb1c1AUqEAyMaE5dkMskynL1tp6dg=; b=Ch5/8b3frcnqGViJrO55oIG1hK KCyHsGaAI2M2KL74z6fIm3tlvk2bgW8h1JTdxUdqjXUSl/LlZ8XgIJoHwGHw6hP5vIJEoIfgosfmy +FeuruMUTm2HxmCCFeGWn96d6zPTUdGwoCpS47jNJuQV7CtycTpMfVlXCt6p2holagKA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rT5yg-0067Ml-Ai; Thu, 25 Jan 2024 21:05:34 +0100 Date: Thu, 25 Jan 2024 21:05:34 +0100 From: Andrew Lunn To: Kathiravan Thirumoorthy Cc: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Cochran , Catalin Marinas , Will Deacon , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 2/8] clk: qcom: ipq5332: enable few nssnoc clocks in driver probe Message-ID: <7a69a68d-44c2-4589-b286-466d2f2a0809@lunn.ch> References: <20240122-ipq5332-nsscc-v4-0-19fa30019770@quicinc.com> <20240122-ipq5332-nsscc-v4-2-19fa30019770@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240122-ipq5332-nsscc-v4-2-19fa30019770@quicinc.com> On Mon, Jan 22, 2024 at 11:26:58AM +0530, Kathiravan Thirumoorthy wrote: > gcc_snoc_nssnoc_clk, gcc_snoc_nssnoc_1_clk, gcc_nssnoc_nsscc_clk are > enabled by default and it's RCG is properly configured by bootloader. Which bootloader? Mainline barebox? > Some of the NSS clocks needs these clocks to be enabled. To avoid > these clocks being disabled by clock framework, drop these entries > from the clock table and enable it in the driver probe itself. If they are critical clocks, i would expect a device to reference them. The CCF only disabled unused clocks in late_initcall_sync(), which means all drivers should of probed and taken a reference on any clocks they require. Please correctly describe the clock tree in device tree, not hide clocks because your DT description is not complete. Andrew --- pw-bot: cr