From patchwork Tue Aug 6 13:58:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13754933 X-Patchwork-Delegate: viresh.linux@gmail.com 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 0FE861D54FB; Tue, 6 Aug 2024 13:58:34 +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=1722952715; cv=none; b=PEn1OXsD965BqDQcm9V9b+nNlPYZpYQcoc7otshDjnhIJuNPrEOyhC2coCRfVuPCM6No0dkCWCuVPjQIKJ5kaf/jNjk9YUgdn531v+h8StubwamPz0hrLkO/UQXptya5PW5gads84ZPTyhi0R1vSeE81lDODuNebRU6B9XjOPCg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722952715; c=relaxed/simple; bh=eFLcuGQoOEe4ylEhJQgrm8MjoBT93gbTRPgSUO7xFzY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ELZwNh6Js+53jkM3du/TGRBBHixsucTuk3fFR5DOswah0yAEKE4pxIAh0uszg404H7YUrMXZSIL00bA/0alRQeoYJJ4TBZN/Nknk58UqPNjPlAjB1YYZoo3+4H5P9RqxdPwAtV3/GX0k8tjxJlPck7qcGjjEKchOZ0QQLQzjJsY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KSqez2L5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KSqez2L5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51EB4C4AF09; Tue, 6 Aug 2024 13:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722952714; bh=eFLcuGQoOEe4ylEhJQgrm8MjoBT93gbTRPgSUO7xFzY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=KSqez2L5/vgCuqgmZqBI7MSVyEGMmQgxT3dujmTWUQsbTC/iVkuYKKT7zi0n+Ohjb 0hlRxrHp6CQm0GpOrdboy2usp7v5JtT/sBiEhM0dB4bPgmPFadGuAU5rQYhm1iFdOF miXMaomY/jFi1+4fnuJut61Ez1LmQBe1BIX5OSnzGihequf+7DdPkSrSfRuXJruXvt sCOF3lhafNN74L4ib2LQ7l3ty0brnelAPFT8YWTF2phaLsWUPVX3N0TLy4JpTEbkPJ EKgfk2Ekcv0Ts7KF6iy2CBJ/Xyfa+cr5e9/+u9vBn8Vn6Hl5v6m0dEaEqpylyA+fG9 EqOLdkrOAX4rA== From: "Rob Herring (Arm)" Date: Tue, 06 Aug 2024 07:58:22 -0600 Subject: [PATCH 1/6] cpufreq: qcom: Add explicit io.h include for readl/writel_relaxed Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240806-dt-api-cleanups-v1-1-459e2c840e7d@kernel.org> References: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> In-Reply-To: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> To: "Rafael J. Wysocki" , Viresh Kumar , Kevin Hilman , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Nishanth Menon , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.15-dev The qcom-cpufreq-hw driver is relying on an implicit include of io.h which doesn't get included on some architectures. Signed-off-by: Rob Herring (Arm) --- drivers/cpufreq/qcom-cpufreq-hw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index 370fe6a0104b..900d6844c43d 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include From patchwork Tue Aug 6 13:58:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13754934 X-Patchwork-Delegate: viresh.linux@gmail.com 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 7FC6D1EA0CD; Tue, 6 Aug 2024 13:58:36 +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=1722952716; cv=none; b=pvHOE+sik5nHhDF5c9JyhsMnUKIbku3Am2UP1aztD/i84NJOzaEC2Odf7gonFxXEkJbEs5nGYpm2h3ahdRBhummEGcVR5iLkAmcr+0oVL7PWufkVzVSzpm6cLwCWJtqbVSv0RKpUx+a0gpiQiHenKHGN2Jq4w9ZPAWkHOf3//iU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722952716; c=relaxed/simple; bh=O6glnD5wiXE98gLVRHUvmVB4RVvcHr0FDiaVdLjF2KY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XLXFsdwhLl48mBvFaigVZfi3r5g98tCkJlTn4+gfZD8f2XrOku4sW/WcJNbWWf9hyix3ZTSgg3hWHvcqbEP+oeI16qQTG2IHHrUoTKtjsjTGkzduQgX4S7HxQ3NnYn4sqm+pSESw2B/3zcRBqSGzKeOAW8IdNfaXIn4GkVnbTXs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=av06cCPX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="av06cCPX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0705C4AF11; Tue, 6 Aug 2024 13:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722952716; bh=O6glnD5wiXE98gLVRHUvmVB4RVvcHr0FDiaVdLjF2KY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=av06cCPXNd155wv3Dvm0kSw7gTCjsITJkQX/nsGcdomek8+59kQHT7GpPHxxpiaDQ JqoOTWzROUPqSw5DkvvjiNiC4wEZf5h2zzIbUyALL63Us5ll5RBU/GykKsDgKOpgvD 9sUW88m2daFuDyiz+ltZ4oCgbd/CmpAAiVxpIIHzdy3xdJ7GGzfg+jJfAODou/hGiI 2XdQ9G7sS89kPK4Ygy0CnrOQAjdzI1MxM7qAc7eGzbKyNh5qDk0gyYN7lmq/JbFf09 oqsCuCIv5I2fRFoLMjvJaMC8JevL5TSPyEBpymz8EMB/TRRb3MTsxc0hzRzJlOnBlr IKcIZ2qAKCuoQ== From: "Rob Herring (Arm)" Date: Tue, 06 Aug 2024 07:58:23 -0600 Subject: [PATCH 2/6] cpufreq: omap: Drop asm includes Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240806-dt-api-cleanups-v1-2-459e2c840e7d@kernel.org> References: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> In-Reply-To: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> To: "Rafael J. Wysocki" , Viresh Kumar , Kevin Hilman , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Nishanth Menon , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.15-dev The omap driver doesn't actually need asm/smp_plat.h, so drop it. asm/cpu.h is not needed either as linux/cpu.h is already included. Signed-off-by: Rob Herring (Arm) Acked-by: Kevin Hilman Reviewed-by: Dhruva Gole --- drivers/cpufreq/omap-cpufreq.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index 3458d5cc9b7f..de8be0a8932d 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -28,9 +28,6 @@ #include #include -#include -#include - /* OPP tolerance in percentage */ #define OPP_TOLERANCE 4 From patchwork Tue Aug 6 13:58:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13754935 X-Patchwork-Delegate: viresh.linux@gmail.com 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 0FA951D2F49; Tue, 6 Aug 2024 13:58:37 +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=1722952718; cv=none; b=iMbC/YzVGR1hw77CfjYAx0yXst4IFhnDdQ86a9YNKXuAdMZXoHW4c2eOiGZITGVJFoBf8NxMd/KfNgr8uwkqhZmZ2B00y3zW01suV6yuI4AxCT5xoANt74tge/T9azTTAo3tLM+za6VupUvL5MNPiRciilM3AT39ApjhLhwKOKA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722952718; c=relaxed/simple; bh=bpFwOW/Idgv4HfSu/INdfs1drz/1nc8HjbwYZGkDWcs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BqW6zO48ngPu+arS9A2mjRUvOSGMiawSb7GRXjlLLg8kfrJv/Cx9nejXDArmDAbtAIfYInsqsrErk8m+ljgXTimFbl2y6u/pDOCFCeJc21vaWnO4LgOrfxt0MlWfHKVxYjBCtC1vqq3+2nPM5gujwImvi4p0Edf4PBDjDY0Ukbs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uHkxk6lC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uHkxk6lC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D57DC32786; Tue, 6 Aug 2024 13:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722952717; bh=bpFwOW/Idgv4HfSu/INdfs1drz/1nc8HjbwYZGkDWcs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=uHkxk6lC5/XZGrJy8/XTdn1Qu/XhDeecfgk2EwXEF+oylzTxjKNPEdTikfDdNXA6b UxkbukVT/mXCMln7LcnLJfJnBT8HtXeEvTzBS1lIRTQFuC0Q7K4jlhsPFpXwNWOLrf p7R9Zivjnf+gIgBskWFDE26A+hCM4El/F8I8CeaVbJD2LYogsBfKa5MXKE2GoLNulZ mZsrN4uWamzkHOcQd+kvx/4yOCgMMmfcbWI/MFkJfoHGOR1FFytq1ZZ/UutUPxG2+P gkQIdoufRAHzEXHb7MnIuCOLDp4UgJIjelm6lJDr60PMYRk1v7cS+6g9pAfBmfurg/ zhRqkWu5zPIUA== From: "Rob Herring (Arm)" Date: Tue, 06 Aug 2024 07:58:24 -0600 Subject: [PATCH 3/6] cpufreq: armada-8k: Avoid excessive stack usage Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240806-dt-api-cleanups-v1-3-459e2c840e7d@kernel.org> References: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> In-Reply-To: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> To: "Rafael J. Wysocki" , Viresh Kumar , Kevin Hilman , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Nishanth Menon , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.15-dev In some build configurations (e.g. x86 allmodconfig), 2 cpu_mask variables exceeds the max stack frame size: drivers/cpufreq/armada-8k-cpufreq.c:203:1: error: the frame size of 2128 bytes is larger than 2048 bytes Fix it by making "cpus" static which is fine given that module init is only called once. Signed-off-by: Rob Herring (Arm) --- drivers/cpufreq/armada-8k-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/armada-8k-cpufreq.c b/drivers/cpufreq/armada-8k-cpufreq.c index ce5a5641b6dd..7a979db81f09 100644 --- a/drivers/cpufreq/armada-8k-cpufreq.c +++ b/drivers/cpufreq/armada-8k-cpufreq.c @@ -132,7 +132,7 @@ static int __init armada_8k_cpufreq_init(void) int ret = 0, opps_index = 0, cpu, nb_cpus; struct freq_table *freq_tables; struct device_node *node; - struct cpumask cpus; + static struct cpumask cpus; node = of_find_matching_node_and_match(NULL, armada_8k_cpufreq_of_match, NULL); From patchwork Tue Aug 6 13:58:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13754936 X-Patchwork-Delegate: viresh.linux@gmail.com 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 0A131205E0E; Tue, 6 Aug 2024 13:58:39 +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=1722952719; cv=none; b=Kn1Z7AKNcZhl2k4VvdnrfGjkaWJilNr4v/EFohiLq6rtC5QzFSXd/qMG9ltGQ8nShdQXL1BMW8tYPrgx3PETL/GkGeJ3ow4cnmbdz5YvMIED3HxPmrd2IbHk+5jYiWZ/AzYeFWKJ9Xmh2mxWwyrdmjy5Paebo/INF8c4KKvDpik= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722952719; c=relaxed/simple; bh=uCYvbAMXm2+3AvQKq0Q0abiFwVHINEmdiWc+kAmUIE4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AseBqmps9BaqqAk5CBqxNUfsqXM/KNW+xFMRZdOKTDoYuwO4Lay4+Gh0pIwDn452Aq9G3P2k+htzaXbQOxy58SITf9VUr2oWXl3CdfF/icfbEE4bNrKnpYqj+2A/4E7dDenUJycGXTF1tJtkDliR5YCIfUjtlCMk/eGm4qYCTks= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NOoiUZ+n; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NOoiUZ+n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7A78C4AF11; Tue, 6 Aug 2024 13:58:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722952718; bh=uCYvbAMXm2+3AvQKq0Q0abiFwVHINEmdiWc+kAmUIE4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NOoiUZ+nn08tT72C7dMaunByY1Vc4QydgBoYh7mRJ9a4M5SHsk7SQRHwmLHdZWU6+ 39mxU80tOUaGIsBe1h7UTDsSL2XE3ApGXGurUHJPq8+78RI9F8xJC/ItglKQk6SSb5 RDelsWAB6aShmC7h3ObWXhbdjC+s5HNyLfid+kU7gUTJ67gA2NzcvnCVagLEnpAbGx +7jBdZHhyruhLGib9KDTIT1Txx1VV6WKizTgOpHQNPzNUuayECNq21ZUrk/qHaBEFr a3UFEHLZ6djJOuRxjah9eZnnZ/Sqy8Dvg9xosSDhKCUhVDmbRMqdlbz8Oc/uW5lG/i AYmndjDwMnlLg== From: "Rob Herring (Arm)" Date: Tue, 06 Aug 2024 07:58:25 -0600 Subject: [PATCH 4/6] opp: ti: Drop unnecessary of_match_ptr() Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240806-dt-api-cleanups-v1-4-459e2c840e7d@kernel.org> References: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> In-Reply-To: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> To: "Rafael J. Wysocki" , Viresh Kumar , Kevin Hilman , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Nishanth Menon , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.15-dev of_match_ptr() is not necessary as the driver is always enabled for DT. Signed-off-by: Rob Herring (Arm) Reviewed-by: Dhruva Gole --- drivers/opp/ti-opp-supply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/opp/ti-opp-supply.c b/drivers/opp/ti-opp-supply.c index ec0056a4bb13..5f0fb3ea385b 100644 --- a/drivers/opp/ti-opp-supply.c +++ b/drivers/opp/ti-opp-supply.c @@ -405,7 +405,7 @@ static struct platform_driver ti_opp_supply_driver = { .probe = ti_opp_supply_probe, .driver = { .name = "ti_opp_supply", - .of_match_table = of_match_ptr(ti_opp_supply_of_match), + .of_match_table = ti_opp_supply_of_match, }, }; module_platform_driver(ti_opp_supply_driver); From patchwork Tue Aug 6 13:58:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13754937 X-Patchwork-Delegate: viresh.linux@gmail.com 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 AE3DE20FA81; Tue, 6 Aug 2024 13:58:40 +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=1722952720; cv=none; b=jIj11frmoG87qvihYT0nTWMEcduHYDNSi5d32uY+WbyGMwsR1X1k6vez57WmJqO4baGcgkJKKNo61b5Cg3O/euHoO+Mw1MlqTlSRJBoGb7Sm5mAatD8CtmioARIdXbTUFjiYA/1sGrtxhNe2GZdXdrOpvCxxrHghCzNfLv9e+KE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722952720; c=relaxed/simple; bh=J8ubgUjHNrtLv0TxZJXPD766YdpBaBhWC+ww/EHkWQA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nzaH0qRoZ3WooRC5oDWq4LX9L4ulUyRzp6SbXeovnMkEWQF+6EpNB6SYN2/roq+85gvhuUwT+BrZRvMORqmJPCO0lScVylGl/IbwHut6+3aw+nTzovZLhtO5Hue5mdYzWK5P6c4pcwiprSRNmHN879b3Q2zdUEdCFTM5B15UfE8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oK29PC5A; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oK29PC5A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20285C32786; Tue, 6 Aug 2024 13:58:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722952720; bh=J8ubgUjHNrtLv0TxZJXPD766YdpBaBhWC+ww/EHkWQA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=oK29PC5Adw/jfmeGKjnKEqB8XHIQiPOVF5FhV1gFP0ZDuXhZkUmn8TAPSBRUA5ppb HYKrMwFqMaQF4sYxTxRhtxRMbARAlQkB0ldAEfzTeseN3Tk+7g+s/bgXRZ3PctfIix kOjeavcEoyz3YH5WOVOnlD2nj5+fXUh/3yRwfkOimC7PjZgMy+ajHXdTa6+kxjB3Ky qhLnQ3tUDWFU8yt3PQ9QjikJv281uCickYzn+qhb7hUv9T0JsJGgNmpCZ8Jhcg9U7F mwCxfv9D3m5EuK7YY49zuODD3Z0Dw/SZdgDLT2n9oYSxAl4joWlRIefE27hVCuJlAu uNvitqc3KH0tg== From: "Rob Herring (Arm)" Date: Tue, 06 Aug 2024 07:58:26 -0600 Subject: [PATCH 5/6] cpufreq: Enable COMPILE_TEST on Arm drivers Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240806-dt-api-cleanups-v1-5-459e2c840e7d@kernel.org> References: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> In-Reply-To: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> To: "Rafael J. Wysocki" , Viresh Kumar , Kevin Hilman , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Nishanth Menon , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.15-dev COMPILE_TEST is useful for build testing without requiring a specific architecture's compiler. Enable it for most of the Arm CPUFreq drivers. As Kconfig.arm is only included on ARM and ARM64, COMPILE_TEST is only enabled for those architectures until that is dropped. Signed-off-by: Rob Herring (Arm) --- drivers/cpufreq/Kconfig.arm | 50 +++++++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 96b404ce829f..5f7e13e60c80 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -5,7 +5,7 @@ config ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM tristate "Allwinner nvmem based SUN50I CPUFreq driver" - depends on ARCH_SUNXI + depends on ARCH_SUNXI || COMPILE_TEST depends on NVMEM_SUNXI_SID select PM_OPP help @@ -26,15 +26,17 @@ config ARM_APPLE_SOC_CPUFREQ config ARM_ARMADA_37XX_CPUFREQ tristate "Armada 37xx CPUFreq support" - depends on ARCH_MVEBU && CPUFREQ_DT + depends on ARCH_MVEBU || COMPILE_TEST + depends on CPUFREQ_DT help This adds the CPUFreq driver support for Marvell Armada 37xx SoCs. The Armada 37xx PMU supports 4 frequency and VDD levels. config ARM_ARMADA_8K_CPUFREQ tristate "Armada 8K CPUFreq driver" - depends on ARCH_MVEBU && CPUFREQ_DT - select ARMADA_AP_CPU_CLK + depends on ARCH_MVEBU || COMPILE_TEST + depends on CPUFREQ_DT + select ARMADA_AP_CPU_CLK if COMMON_CLK help This enables the CPUFreq driver support for Marvell Armada8k SOCs. @@ -56,7 +58,7 @@ config ARM_SCPI_CPUFREQ config ARM_VEXPRESS_SPC_CPUFREQ tristate "Versatile Express SPC based CPUfreq driver" depends on ARM_CPU_TOPOLOGY && HAVE_CLK - depends on ARCH_VEXPRESS_SPC + depends on ARCH_VEXPRESS_SPC || COMPILE_TEST select PM_OPP help This add the CPUfreq driver support for Versatile Express @@ -75,7 +77,8 @@ config ARM_BRCMSTB_AVS_CPUFREQ config ARM_HIGHBANK_CPUFREQ tristate "Calxeda Highbank-based" - depends on ARCH_HIGHBANK && CPUFREQ_DT && REGULATOR + depends on ARCH_HIGHBANK || COMPILE_TEST + depends on CPUFREQ_DT && REGULATOR && PL320_MBOX default m help This adds the CPUFreq driver for Calxeda Highbank SoC @@ -96,7 +99,8 @@ config ARM_IMX6Q_CPUFREQ config ARM_IMX_CPUFREQ_DT tristate "Freescale i.MX8M cpufreq support" - depends on ARCH_MXC && CPUFREQ_DT + depends on CPUFREQ_DT + depends on ARCH_MXC || COMPILE_TEST help This adds cpufreq driver support for Freescale i.MX7/i.MX8M series SoCs, based on cpufreq-dt. @@ -111,7 +115,8 @@ config ARM_KIRKWOOD_CPUFREQ config ARM_MEDIATEK_CPUFREQ tristate "CPU Frequency scaling support for MediaTek SoCs" - depends on ARCH_MEDIATEK && REGULATOR + depends on ARCH_MEDIATEK || COMPILE_TEST + depends on REGULATOR select PM_OPP help This adds the CPUFreq driver support for MediaTek SoCs. @@ -130,12 +135,12 @@ config ARM_MEDIATEK_CPUFREQ_HW config ARM_OMAP2PLUS_CPUFREQ bool "TI OMAP2+" - depends on ARCH_OMAP2PLUS + depends on ARCH_OMAP2PLUS || COMPILE_TEST default ARCH_OMAP2PLUS config ARM_QCOM_CPUFREQ_NVMEM tristate "Qualcomm nvmem based CPUFreq" - depends on ARCH_QCOM + depends on ARCH_QCOM || COMPILE_TEST depends on NVMEM_QCOM_QFPROM depends on QCOM_SMEM select PM_OPP @@ -166,7 +171,7 @@ config ARM_RASPBERRYPI_CPUFREQ config ARM_S3C64XX_CPUFREQ bool "Samsung S3C64XX" - depends on CPU_S3C6410 + depends on CPU_S3C6410 || COMPILE_TEST default y help This adds the CPUFreq driver for Samsung S3C6410 SoC. @@ -175,7 +180,7 @@ config ARM_S3C64XX_CPUFREQ config ARM_S5PV210_CPUFREQ bool "Samsung S5PV210 and S5PC110" - depends on CPU_S5PV210 + depends on CPU_S5PV210 || COMPILE_TEST default y help This adds the CPUFreq driver for Samsung S5PV210 and @@ -199,14 +204,15 @@ config ARM_SCMI_CPUFREQ config ARM_SPEAR_CPUFREQ bool "SPEAr CPUFreq support" - depends on PLAT_SPEAR + depends on PLAT_SPEAR || COMPILE_TEST default y help This adds the CPUFreq driver support for SPEAr SOCs. config ARM_STI_CPUFREQ tristate "STi CPUFreq support" - depends on CPUFREQ_DT && SOC_STIH407 + depends on CPUFREQ_DT + depends on SOC_STIH407 || COMPILE_TEST help This driver uses the generic OPP framework to match the running platform with a predefined set of suitable values. If not provided @@ -216,34 +222,38 @@ config ARM_STI_CPUFREQ config ARM_TEGRA20_CPUFREQ tristate "Tegra20/30 CPUFreq support" - depends on ARCH_TEGRA && CPUFREQ_DT + depends on ARCH_TEGRA || COMPILE_TEST + depends on CPUFREQ_DT default y help This adds the CPUFreq driver support for Tegra20/30 SOCs. config ARM_TEGRA124_CPUFREQ bool "Tegra124 CPUFreq support" - depends on ARCH_TEGRA && CPUFREQ_DT + depends on ARCH_TEGRA || COMPILE_TEST + depends on CPUFREQ_DT default y help This adds the CPUFreq driver support for Tegra124 SOCs. config ARM_TEGRA186_CPUFREQ tristate "Tegra186 CPUFreq support" - depends on ARCH_TEGRA && TEGRA_BPMP + depends on ARCH_TEGRA || COMPILE_TEST + depends on TEGRA_BPMP help This adds the CPUFreq driver support for Tegra186 SOCs. config ARM_TEGRA194_CPUFREQ tristate "Tegra194 CPUFreq support" - depends on ARCH_TEGRA_194_SOC && TEGRA_BPMP + depends on ARCH_TEGRA_194_SOC || (64BIT && COMPILE_TEST) + depends on TEGRA_BPMP default y help This adds CPU frequency driver support for Tegra194 SOCs. config ARM_TI_CPUFREQ bool "Texas Instruments CPUFreq support" - depends on ARCH_OMAP2PLUS || ARCH_K3 + depends on ARCH_OMAP2PLUS || ARCH_K3 || COMPILE_TEST default y help This driver enables valid OPPs on the running platform based on @@ -255,7 +265,7 @@ config ARM_TI_CPUFREQ config ARM_PXA2xx_CPUFREQ tristate "Intel PXA2xx CPUfreq driver" - depends on PXA27x || PXA25x + depends on PXA27x || PXA25x || COMPILE_TEST help This add the CPUFreq driver support for Intel PXA2xx SOCs. From patchwork Tue Aug 6 13:58:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13754938 X-Patchwork-Delegate: viresh.linux@gmail.com 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 2D3C520FAA7; Tue, 6 Aug 2024 13:58:41 +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=1722952722; cv=none; b=i1ZrypXBnRvbFF/wsKTXYrd+/BHkvNhPmqt4fu16p9R2aVkais2wRs1JJRGpJV/iN6zCzQQSFd5zKCvXMzSBIvju/zLO1c2vcr8A5ptli05q38OteV7Q4kQkWbRqJ0f8VyvVJHdqEB6zixnIpMUlNePfCSpMR0fyX1qkef0CRuk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722952722; c=relaxed/simple; bh=QVK/Q63Ty0/vwxPdFAgX18Uk2bo2WKZpj8mNx7zlTHc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CSL9eBPcwvLVNcydEX4X03ie7cLGe5cs76Lqq0sQrIG0CpAn/740g3IE7uiZ01adL9rCCM5K0f62qb8V4LDjEB34bkCAlFh6kBeKAn5zLh6HcngXzHjJ/Z4hyvxwhX5PBFpxbFHMUOGxkKlrEw+XZHRLIAQ8wE2Yure9YpWDn8Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jbCYReMc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jbCYReMc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94282C4AF0C; Tue, 6 Aug 2024 13:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722952721; bh=QVK/Q63Ty0/vwxPdFAgX18Uk2bo2WKZpj8mNx7zlTHc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=jbCYReMcMawvrLpAIbnexeTNTcymVDfvKVkaJwm/Q6k05IkKTjBMAiGl5tfYS97Iw TAIYX9dNQKL2phosPWx/IDuJeLe5KCqCJJipdY/YFSwnmA3HjSYBUS0HuQeTu8+5uG P7ESMF0RWFOTkM/OxeSNjA8NCTyb7HUop0bWUqklYfw7iUJXRzgBx7K2UYG87Onu/G +CtVPglMQVDfxic57yKqPa2C4L2SjT52OPeiaVnz3du2sQbfliIhO/R9lNjwVh8E5/ eevLw9L3uk9sC8aHm998zlBCX833LS2+nhS9xRv+4dlD4nAJfCM1qN9k4DpQTq6jum Y4p7rszyDraeQ== From: "Rob Herring (Arm)" Date: Tue, 06 Aug 2024 07:58:27 -0600 Subject: [PATCH 6/6] cpufreq: Drop CONFIG_ARM and CONFIG_ARM64 dependency on Arm drivers Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240806-dt-api-cleanups-v1-6-459e2c840e7d@kernel.org> References: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> In-Reply-To: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> To: "Rafael J. Wysocki" , Viresh Kumar , Kevin Hilman , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Nishanth Menon , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.15-dev The CONFIG_ARM and CONFIG_ARM64 dependency is redundant as all the drivers have necessary sub-arch dependency and don't depend on the architecture support. Signed-off-by: Rob Herring (Arm) --- drivers/cpufreq/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 10cda6f2fe1d..2561b215432a 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -231,9 +231,7 @@ if X86 source "drivers/cpufreq/Kconfig.x86" endif -if ARM || ARM64 source "drivers/cpufreq/Kconfig.arm" -endif if PPC32 || PPC64 source "drivers/cpufreq/Kconfig.powerpc"