Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp332551rdb; Thu, 15 Feb 2024 01:11:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW5/66y2bx1neREfk6rTOyuBLl5crZ6jc+3IWshCPGODKvQRLksu4HK3ldreNp2dpSUV4uTcYOs+td5Bk4uDESIgnJwqssw3AMkR+v+zw== X-Google-Smtp-Source: AGHT+IHe2CVFGZL6hWwweYtHBlEpXVXKCg4nAUDo/TuSxsL8fqtq9uDHJuwz/NYPveiHzbY6HEp3 X-Received: by 2002:a17:90b:1007:b0:297:283b:48e1 with SMTP id gm7-20020a17090b100700b00297283b48e1mr1011330pjb.13.1707988290523; Thu, 15 Feb 2024 01:11:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707988290; cv=pass; d=google.com; s=arc-20160816; b=uVhf/aMscruU9JC+M27EwYF3dhDJ+70D1H3xV5dJLnFTtZbtXfmpldcJ8DNe29Go7x SBwYGf3wkEECuKkOHdZo+/YL396NgNLWFE27/PpsD+Pa3hI2/4FuisuvEf6WyuG0Lo1z X1amQefrafadNT6iicEBHKvr/HgAiWBkgG86eRVwRdxPihgqDuGu2+7nojsTm+E18k9v WBg2j9dqQM9/mbk9dZJ9u1ocr4cOXD1p+h0w3klOxgFQbC2mXFVNLvbZ3leZkonVQbYs otNWgFyfG12wQ167W0R7OWHmUzKdE9Wj6XobUHxQlokYrSTLyqeRC3leW/fVrBENR7XP +1hQ== 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=unp5IYDIJwzJBKtXHzFZAv0ys3C/nXvo3MpOLEbWD+0=; fh=P1kE+/wKy8iG2S6AZr/r+IXKcyOwLSO4wRS8JhXQrY0=; b=dEyxVNPQQX+H2F5hxiqRHCuGAolVjIz5RfRBK2kGcNMLv9EXlYkROq94BSsmaUp7hg 758n3RUU1o6X1DHKe9//dtwG9+nIMuP7a75JXYqaqXlEzPCawHWdqLYnxh08v3MWajzh JWfFC4VLEYyU4Ogn4ylRXsYKBV2ftpkcuX4JFBl+2+vlLAGRiBERof5mKIzzLgsvCkRQ fcA6BJHJszX/c/KHnol1sdW7qp/Yq5Zutj/WNfzf2rhr/W/tnhf7nAddDWqJVwM2u+Ab v8pwvf9vKNd+6QMP6h6IgvhjjtXH/mWBVdLETz0ZoLidh7gN20AqdNQ1AFSFMiVEVP2R pR2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ri0f8YUb; 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-66431-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66431-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id na18-20020a17090b4c1200b002991fcf73acsi43180pjb.95.2024.02.15.01.11.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 01:11:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66431-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ri0f8YUb; 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-66431-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66431-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 31B88B25ADB for ; Thu, 15 Feb 2024 08:38:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 140EC134D3; Thu, 15 Feb 2024 08:38:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ri0f8YUb" Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 C6A6811713 for ; Thu, 15 Feb 2024 08:38:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707986324; cv=none; b=JQrSdm3FNpBb57MsvTlgARR6RypsZ0K1EqV2MHCh8Zx0LQFmXQnTwN//EwJJQlxlWYoKjODq7PhYmt30PRLH/iITU4KyLqW9/9yr+IPf8U7qUFA5MK4UMVr55dbNE8c9AnxeRKb5b0FCP7quZtsryT2C7rMsQsZTpF1vUpsS31g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707986324; c=relaxed/simple; bh=Q56x3ZcX1nF9Sgm6TFM0JZIi1GbTTjB5Fn2nyTorVbQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rsX0/47khjdGNd95Pc6neXtg2ntz5YPz8iMLAYKoG0VX3QICCdrcUPN7RlJTAf4wGZX9nt5LEl1QyXRTCn18xa89LOb4BwTwYV83GZXH7/5cs/FPMp+g6xqTS9kN5FtoaR0Eug2cvnQuV8RtYHVm5qH4vMjDoynkN9c6cumlm4g= 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=ri0f8YUb; arc=none smtp.client-ip=209.85.214.178 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-pl1-f178.google.com with SMTP id d9443c01a7336-1d71cb97937so5854485ad.3 for ; Thu, 15 Feb 2024 00:38:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707986322; x=1708591122; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=unp5IYDIJwzJBKtXHzFZAv0ys3C/nXvo3MpOLEbWD+0=; b=ri0f8YUbwHLi89vFn1RQc5cGGsP/GBhKQpDneR3fZY3aIICVbo7qV+hUxr+YC7pqpO peP4HRrD+K6RadLWJ5g2sAx/EgTP9C4PsdqoPp/gR4llwmQJqf1DjY4K2Jepqcladlzi yFCgYXDvBpnp3bYhNG1DuVMc8vbK+2p9Vi38owZOt6K28bkQAA7i4UDc4hr28i/NqlWL NNE4pXeyc1IF0OOYSpdG1CWf3EMvXFw/i6hZyGDkhle+jg1mmVVm3S/XUljCmr0zlkNB lwVqc12UyF8vGtTA5XrvBqdyvGkTJpRzX13/KQh4wlRX+HGdqRbKpmirE0wTRgXi41ve G6Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707986322; x=1708591122; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=unp5IYDIJwzJBKtXHzFZAv0ys3C/nXvo3MpOLEbWD+0=; b=B+keeC+mmXJmDXMoCxu61Kg/oSDP0qIyUBmUqk6AX/a4bxDoRpjuO80HOA4OeSwByk t0atzrkGpv2qf2iq4H9m7G/TdGn8oKwtbEhU1r2AS6O2jeZJgnyN09s5FE8JmLlSKIBb B+5RT5Tvy190IcaLHamKpouG4gsB57gIoUOYf2rSPvOF0lKu44UqXhdgqNDWE/pjbKet OxdvYRczckpioc5kBJWwcafnLc6aOozpGcsIfuayc9H6c0RdVuijyWDfDwwSNfdn243+ gu+uqD1aexlxXeCppY9JwLyRjoTBrrhG8QxpKkCAQWfl5qIeFo6KwJHG+1xlkcnxJtVR nGtw== X-Forwarded-Encrypted: i=1; AJvYcCWWIP13VZR8bW6LgIAuGCNLhUjKUHbVz8Bz2e9hK49galx5y6rYY+l2GsZWjiSOfuKSLS95XrbNElsAO+OTTDwPPFKVM65PmN3ZLMok X-Gm-Message-State: AOJu0YxYA/1ND6Wkw5WGkxeKZoU9QxIfUlZifWbXTS5e/ZmtP7W9uDV4 FKtHNy61wtoBT+axO//KPkrgV0il0qUQ2Wx5cdlQ3/3+Se6hP1h1wyElXS6UW8yHOD3/48fsIA/ H X-Received: by 2002:a17:903:32c3:b0:1d8:f071:5067 with SMTP id i3-20020a17090332c300b001d8f0715067mr1329330plr.35.1707986322106; Thu, 15 Feb 2024 00:38:42 -0800 (PST) Received: from localhost ([122.172.83.95]) by smtp.gmail.com with ESMTPSA id u5-20020a170902bf4500b001db45855530sm729704pls.290.2024.02.15.00.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 00:38:41 -0800 (PST) Date: Thu, 15 Feb 2024 14:08:39 +0530 From: Viresh Kumar To: Arnd Bergmann Cc: "Rafael J. Wysocki" , Manivannan Sadhasivam , Xiu Jianfeng , Arnd Bergmann , Alexander Stein , Jingyu Wang , Florian Fainelli , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpufreq: qcom-hw: add CONFIG_COMMON_CLK dependency Message-ID: <20240215083839.rq7655uhmrlnkh3w@vireshk-i7> References: <20240215083322.4002782-1-arnd@kernel.org> 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: <20240215083322.4002782-1-arnd@kernel.org> On 15-02-24, 09:33, Arnd Bergmann wrote: > From: Arnd Bergmann > > It is still possible to compile-test a kernel without CONFIG_COMMON_CLK > for some ancient ARM boards or other architectures, but this causes a > link failure in the qcom-cpufreq-hw driver: > > ERROR: modpost: "devm_clk_hw_register" [drivers/cpufreq/qcom-cpufreq-hw.ko] undefined! > ERROR: modpost: "devm_of_clk_add_hw_provider" [drivers/cpufreq/qcom-cpufreq-hw.ko] undefined! > ERROR: modpost: "of_clk_hw_onecell_get" [drivers/cpufreq/qcom-cpufreq-hw.ko] undefined! > > Add a Kconfig dependency here to make sure this always work. Apparently > this bug has been in the kernel for a while without me running into it > on randconfig builds as COMMON_CLK is almost always enabled. > > I have cross-checked by building an allmodconfig kernel with COMMON_CLK > disabled, which showed no other driver having this problem. > > Fixes: 4370232c727b ("cpufreq: qcom-hw: Add CPU clock provider support") > Signed-off-by: Arnd Bergmann > --- > drivers/cpufreq/Kconfig.arm | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm > index f911606897b8..a0ebad77666e 100644 > --- a/drivers/cpufreq/Kconfig.arm > +++ b/drivers/cpufreq/Kconfig.arm > @@ -173,6 +173,7 @@ config ARM_QCOM_CPUFREQ_NVMEM > config ARM_QCOM_CPUFREQ_HW > tristate "QCOM CPUFreq HW driver" > depends on ARCH_QCOM || COMPILE_TEST > + depends on COMMON_CLK > help > Support for the CPUFreq HW driver. > Some QCOM chipsets have a HW engine to offload the steps Applied. Thanks. -- viresh