Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp298490rdb; Sat, 17 Feb 2024 08:46:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVoS/zWbIUlV3kdzBBVur2a9jQeaPxNG4Q4kB+2appqkKTbi7X7fWNdm4U1BfFgO6pYABHScMo9e0N2IPzIzwR6aSUGREUEkXNH62KiUw== X-Google-Smtp-Source: AGHT+IF0mDWjEbyaS8VqFyr39ouUx9N5Kajo7B+dSlLJ3eLQ/xDO38txljLLTG6rDBrb4gkXGRwv X-Received: by 2002:a05:6402:1843:b0:561:e966:3a28 with SMTP id v3-20020a056402184300b00561e9663a28mr5735935edy.12.1708188367717; Sat, 17 Feb 2024 08:46:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708188367; cv=pass; d=google.com; s=arc-20160816; b=CnDJxFTxmQo4kZwJOw/wH0C1/RU0SqfX1ELZZxrMHyz12MhDD3Fxi8BotBf8Td5dqI iPt3bf+pi3o8fmbwbEVwURqNSKgtWzCMZxXqy3FIeUXR3JBPEDmMwPt/o9YjGMBD4ULW KBJYNe+WrdSXiltqiEBSOeF9y7l7a+ayafmivPMgQBjEzEDFiO2HMBgGCIsAE9OH6g8A koOaSaXHZzOSlKEh9MuEPJsFmii8uz+BmTJNqVhwG+wUNjD3tsrD7Ii6tW+l1nTjtXn9 eugvWpcKCYJHOe6UL5xDmkEzZZD8qewM/M0bZ3hGYsg4pzE+axFc1IREmBNE6sRGMXtE 81Og== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=8b4mZDPM8eGHJ9kfKGWzDwm7bcatVceDQyS3pKcfyeA=; fh=z3xcrJcm8KoNxnj5GIn83E+B5J1e8qXtRcsKUUwZ6ok=; b=V0eEDVfbJuUfeY4gLt/uo3PHK99tEmNTbfOTzbw47Oo6U22NRPwGUsAuItAMMXnvzw 0teUFb5PrJNGQRIQvuUdOTR1uX8ojB71MgeGuTl9o4oNlitJW/wl9IRqtFLMSYFin50r lllFm3NN4aWe/yiYbNNqUbmf+m3Dy9elcvxDJmwKNZtaZuW+4pvn+TuUg8Fkn2BFPdk0 EnA30RDBgZL1yg7YNN5Tq4fKl84h41kxr5XzAUQx/zzx5q18KDdk3ttPDiPgXGpXkyRQ WGx9OFMgfJx7B+kkVAzoFjgy0/C7eHVnqDb2iytSY0SawmtwUDEDR/RX+dk1AOLYD2KH +Dxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EHmDLqTw; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-69975-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u23-20020aa7d997000000b0056390d9b226si937124eds.269.2024.02.17.08.46.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 08:46:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69975-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EHmDLqTw; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-69975-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 545C21F21F8C for ; Sat, 17 Feb 2024 16:46:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 796D07D412; Sat, 17 Feb 2024 16:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EHmDLqTw" Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C7367D3F5 for ; Sat, 17 Feb 2024 16:45:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708188353; cv=none; b=ua1AXnvyKwUGpU/pU8CVrTAeZbSICnsJA4+3GcMTh8ZxvEwMHwfmYlpw/iMcEFtiFerc5iOvtnReBjahGYBTvVsflJyjD/MOOS9094ZFmXD04OCvqID0fTFNPpNWMHOKg9d11s/xfDfLP1qmRSmUaNq0gDenJjwIoDvsSjnJTiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708188353; c=relaxed/simple; bh=jnNx/uqfu3MLSSg6puGANl2kdnhsWwqi8IjbRuM06nA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Gl/TQ7R7qYpuX3B4xAGh9CcVJ2QHmwSngCKV4knmpXogQxJgNAghQeJxP2mqPKPtGXDQ/Drst1cXJTxM5ac/0eha1Mv3AuYgDGW2NUbyCU9yvXn8I+6mNw1fxEKZ+he/9ZYCzjL5SlEScBD+ZBsYB2TiqPBgYhPO281jB0wBz0M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=EHmDLqTw; arc=none smtp.client-ip=209.85.128.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-607f94d0b7cso18066667b3.3 for ; Sat, 17 Feb 2024 08:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708188351; x=1708793151; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=8b4mZDPM8eGHJ9kfKGWzDwm7bcatVceDQyS3pKcfyeA=; b=EHmDLqTwYTX8oymXtAWA4HPpYtFTeD4plFX+mf3NEG17EgoGsCArVnmFpkE/LbPqZ8 6edlP36Hs5Z1588riiAocj6r89AmQcrLBzReJoiVHGTxsNX+lafl0R70MfTZLFJwk9v6 6e7vetaZfN+q8ICXViNr5jS3O1C6largIluLL/KsauPKUfxqYk5ALNsMdJaiYT7a5PnG HWe56IJcQEFZeoUp5noFBnkIIH8HxKMZKReOiEl8szLuiOvhiWwbYx66OF9oDU9Eywer 0Skr/GWU6qKR/Q+8FeGuFXck1cKPJkEFu0hRs6Z6r1TElPI0z0w3z9cW7ZwGN2+X1zIh IQNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708188351; x=1708793151; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8b4mZDPM8eGHJ9kfKGWzDwm7bcatVceDQyS3pKcfyeA=; b=szbJtEq5U+9Wgehss5OWvwILgnmjoPnWkOmC1dtsI+D3VYOLoZvOYTyT4NC89D4AKA 4cU7cjJz6Orw7NkNXchq7pbxahdvfVgJUV19PcMHRXicreJwrALoOMyArdk9u15jhvPU Q4xN8DDr2wXIxi7x69lf6e2qxft2ukJ9N9cL4ofFJbyEgPyVJT67FhxuAi2qgmtOgfL5 SvvTgKH/oKxwt6KNbbuta4JtO92ZFScvwlfBXYDETET1oFKg0TOJNa5nXqyczK7g5E5p Z5dQ//jzhYwmqPgZ6GrPCLWMX3D41oyv0zjqOdPjPXnTZ8YbP+sKPxPVoAk6jOUIujip M6QA== X-Forwarded-Encrypted: i=1; AJvYcCWoQhwvJcHNAYMpnDvBtSwTwO2zy6ks1ELniA2qxedMXULhxkDqhbotsqoTdnBFvkOJc3xKyUYs8JufbZZSY8v4upOvZ1x7qfGhruVp X-Gm-Message-State: AOJu0Yy0RtzBs7ojTk/OYy1oTjre+SEFAXd3KenAKXx6YfFrKMTsE7uX Ch8EkyLoTv9EiFZ0Lexv6BulQgcWKx4BvKvF+8m9j6E3mQJFV7epPMSDWK7yxuhxj38AsaE+V4p cV+XFN5qzPaSGcfpg+VB8GpQwFB38Y8JtU8M/kQ== X-Received: by 2002:a5b:18d:0:b0:dc6:d093:8622 with SMTP id r13-20020a5b018d000000b00dc6d0938622mr7622931ybl.15.1708188351064; Sat, 17 Feb 2024 08:45:51 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240122-ipq5332-nsscc-v4-0-19fa30019770@quicinc.com> <20240122-ipq5332-nsscc-v4-2-19fa30019770@quicinc.com> <7a69a68d-44c2-4589-b286-466d2f2a0809@lunn.ch> <11fda059-3d8d-4030-922a-8fef16349a65@quicinc.com> <17e2400e-6881-4e9e-90c2-9c4f77a0d41d@lunn.ch> <8c9ee34c-a97b-4acf-a093-9ac2afc28d0e@quicinc.com> <74f585c2-d220-4324-96eb-1a945fef9608@quicinc.com> In-Reply-To: <74f585c2-d220-4324-96eb-1a945fef9608@quicinc.com> From: Dmitry Baryshkov Date: Sat, 17 Feb 2024 18:45:40 +0200 Message-ID: Subject: Re: [PATCH v4 2/8] clk: qcom: ipq5332: enable few nssnoc clocks in driver probe To: Kathiravan Thirumoorthy Cc: Andrew Lunn , 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 Content-Type: text/plain; charset="UTF-8" On Sat, 17 Feb 2024 at 17:45, Kathiravan Thirumoorthy wrote: > > > > > >> Reason being, to access the NSSCC clocks, these GCC clocks > >> (gcc_snoc_nssnoc_clk, gcc_snoc_nssnoc_1_clk, gcc_nssnoc_nsscc_clk) > >> should be turned ON. But CCF disables these clocks as well due to the > >> lack of consumer. > > > > This means that NSSCC is also a consumer of those clocks. Please fix > > both DT and nsscc driver to handle NSSNOC clocks. > > > Thanks Dmitry. I shall include these clocks in the NSSCC DT node and > enable the same in the NSSCC driver probe. Or use them through pm_clk. This might be better, as the system doesn't need these clocks if NSSCC is suspended. > > > > >>> Once you have actual drivers, this should solve itself, the drivers > >>> will consume the clocks. > >> > >> > >> Given that, NSSCC is being built as module, there is no issue in booting > >> the kernel. But if you do insmod of the nsscc-ipq5332.ko, system will > >> reset. > >> > >> Without the networking drivers, there is no need to install this module. > >> And as you stated, once the drivers are available, there will be no issues. > >> > >> So can I explain the shortcomings of installing this module without the > >> networking drivers in cover letter and drop this patch all together? > > > > No. Using allyesconfig or allmodconfig and installing the full modules > > set should work. > > > > > Okay, Got it. Thanks for the information. > > -- With best wishes Dmitry