Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp317299rdb; Thu, 15 Feb 2024 00:33:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXo89UB/54N9elbOXusQ81Q3HBfXwsu+h7jHadUQVY5Vz3WqnH+bKAM2Lku6kxF+sAIl4cJy0i0tVRYAGcEofsDYIUGAu07gVgUUPuMJg== X-Google-Smtp-Source: AGHT+IHxxhB8kP4YsVV+lWxiiGRSx7erVaZLTTHbQYLdj13+/BvT9T7Y+qRzvxIMsdpi9uDqfyeA X-Received: by 2002:ac8:5949:0:b0:42c:7641:6d62 with SMTP id 9-20020ac85949000000b0042c76416d62mr1399647qtz.12.1707986024392; Thu, 15 Feb 2024 00:33:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707986024; cv=pass; d=google.com; s=arc-20160816; b=io6BJ4Jr2GDrz4FhXCkTTfP+8rKK6Su/ho0kgnXww6cPx+qiFY34bWTUUnYGeZ4g7O fOuXh+xrOLcsUHRS6VBZXIUxZLwp4c7u9xWd44HD8TPFiTBLznzMOHqEDoTbC2NlvMnt qXKClD5GDvqDlj2RrYhcehWGnKlVzWEUx4BlTVfMxe4lmWHiFXIV8qV+Au0hNYY9mEOb 4XtGAEvjWS6NeIdstdqPnmkO50kNjFXhEiko98buVWTN7NwuviW6rI3IwsLJLZip6qdH qcTy2s/d5aqAASdNCkCSGBm8sJ/lJAGE2PCkVxqzorRua1lp8iKBojUCSkQr/NJeX+oT 1Iww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=20fKvpMpyHeWI+qAKVwa7XD7AyhTlEN6ItqflGG8xcQ=; fh=Z7Q7JevMumIucmAuNrLVpMoUW5kCs8jpyy9ha/xTdPk=; b=FnOEcP5bBJUzf5jNJpp1lq0rO+XlAAE7bpUghn1ykkXWYdXbs3wGAUO39QvCq9Xz28 /ZA8MctITNSi/d7TeNUCowEnW/BhkNkK2XTxbZjZRg6X2GcQjlM1wZnJA0nM31mjKkag wtDHA2XcPBLMUpYGCaEMkrovPbmJmiXN+eaWg0HTLwkcqelqFqiAYz19Jxdn4uOf3Q8g QwPzSzl8HuiXFOQkjA65W3vMMhHftHdhfgwcFsNzpkauc4009hA9TR4ivxPmd1F0oi1i 6lG3pJh9WIJohexnCOeF4CqpQA66HLAfW0FNYYdMEW5Z+7WunhqMpIwmTpPvtNZ1FNQ3 0BTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lhw7ewat; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66422-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66422-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d8-20020a05622a15c800b0042dbdfcfee8si962718qty.227.2024.02.15.00.33.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 00:33:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66422-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=@kernel.org header.s=k20201202 header.b=Lhw7ewat; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66422-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66422-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 280511C21E8C for ; Thu, 15 Feb 2024 08:33:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF7B8134A0; Thu, 15 Feb 2024 08:33:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Lhw7ewat" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 13A73171A7; Thu, 15 Feb 2024 08:33:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707986009; cv=none; b=EHWJsIjUs19zMUjMpDGObuZqDvkfbnbmmeANdn7DrBfvn39EtPyzAEqrrkq+8pUjJ7yH08/l4LJ2b6URrR1rHIQ57kG3D0BaO1lvo1ZiaMpSre+flH5Ssp2FdcGigrS5Tg3+CUbkc3OLKEx/r1DYNX9GtYa9BMF5pEyIgTOET3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707986009; c=relaxed/simple; bh=ATjsM1v1rtS8D/Phyv7flUsDtfA5NO7irfbWAKzdNXs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=e8Xl5ZLYzht9vGiM7qfPHaSrMDZQmTr++bdHtJ3lqJxgvCAKWhOhWqgVO1828FB0IqVMKMXrzPThx4IDdx7ATLHOPmIoh1s8JxdUwU5YxSL8D4S3KCNYi+yS3mjvplxrJTWAiXmx/lmT4eBSewIfInqJyuxDz4Trjx/kaW9bhDk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Lhw7ewat; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30A97C433F1; Thu, 15 Feb 2024 08:33:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707986008; bh=ATjsM1v1rtS8D/Phyv7flUsDtfA5NO7irfbWAKzdNXs=; h=From:To:Cc:Subject:Date:From; b=Lhw7ewatBIg8dmBvwogTtKZnJQY2QT/5QEdoQ/yUTf7x1G2+OroRp6XUj4dhwmRrO RT9pjrBxbsN3tYav+1VUtOqAWIgjZWbmfRaPIiQ32J9J1Xda5X2bwLuG92bcFcW27o Js4TXZekrA49gXaYuwqlyFXx0/8E8LPaiY1ufYNuDNKzVNWQ8IMRtT0zmUPqfnYroA lZdkESi/UVMm5pqf+VePcLfh9+BCl14xoXuKtxajN8jcaRxtd2KK748eSQDuW/Nn8G 4ACJTzjqMgaUwBEpzBvBg1ai/xDP4BDuolhh6Ar9Wk52rdhnk1N3xdRO0nSqOpRiXI wXzJdxmk7Py6A== From: Arnd Bergmann To: "Rafael J. Wysocki" , Viresh Kumar , Manivannan Sadhasivam , Xiu Jianfeng Cc: Arnd Bergmann , Alexander Stein , Jingyu Wang , Florian Fainelli , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: qcom-hw: add CONFIG_COMMON_CLK dependency Date: Thu, 15 Feb 2024 09:33:14 +0100 Message-Id: <20240215083322.4002782-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 -- 2.39.2