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: 13754924 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 85CABC49EA1 for ; Tue, 6 Aug 2024 13:59:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=IZ2d39OgugP8fUyPZajHNXHw/k6mkG+tP0J7CyvHrak=; b=euMYVG+etKLQcwN0WQp7bnd0JK 5I/ymRPxmjYwFzMtPc5/RfoSYC/vu5SyYsKP6oNeFi08kBGt8CyNvQYs521CIOVXQS6DBG/epP2jn ftmZACIIgf2c1htqt/WkEIMunAtZdo1ADFXmtZ2X2xLZf+J0IfctuzRsIzSjIZOxCM1wad1GoS6Jh oMDlBerTmXXM7uW/CdIaTvOiNnA+WcsGkag3K0KiQekACCN77V13dv/x35xWDCcA5vKFef0QbqjDW W6Xqs24B9JxHlCvtQNBeIvd+KyQWoDARulkCUWzHp4ZHcrzwuPYFeghte3WYKwEFs/NgDBgzBs8DN 1X353LtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKiR-00000001t3Q-2oFW; Tue, 06 Aug 2024 13:59:07 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKhv-00000001swc-1Mjl for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2024 13:58:36 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id C367060B82; Tue, 6 Aug 2024 13:58:34 +0000 (UTC) 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_065835_445525_D3750C55 X-CRM114-Status: UNSURE ( 8.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13754926 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 09CCEC3DA64 for ; Tue, 6 Aug 2024 14:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Zbwgtncmi492pXJDEuLJLwep0XnTcQys0uz9JmUj0gQ=; b=sQ79sLIu3kurIoqhKbJsO61wus aHIufwswszDrz06Z0ZE7ATrhrYMjGoyh1vHfWJGtWneS83HY/npUSTq/oY1tw/yp4hsEUqh/me1r4 rAX02mjN9wN89eex3B5EdEwGs3HbmjFDgqgQFRrqxhtnmfyQ+D+jZycgICtNAsPeKCZq39MKDWrO/ FOMgIT36JR1xwbA2dOHoEC20CowIIX7Q/B6/yPbGpcKuutApZDc00KpjwgRW6PQ5+fAecunrBT1TK prGQ40QqLPq6tBwVNOOs7PJHOicrCBkZLy7lO4iCit+EOq23aXQKQmCHHhd6yQKsUDyK9yQ14UIYq ZglhZVQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKjR-00000001tPO-1amp; Tue, 06 Aug 2024 14:00:09 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKhw-00000001sx4-2wr0 for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2024 13:58:38 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 39D4E60FCF; Tue, 6 Aug 2024 13:58:36 +0000 (UTC) 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_065836_822053_03AD1808 X-CRM114-Status: UNSURE ( 7.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13754927 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 444D2C3DA64 for ; Tue, 6 Aug 2024 14:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PjmD+pvCazxhFg9yepi1EC7HfUMo2AoHsx89mnn3awk=; b=KygyAtxjjAlx2KdyFlCbgvX/TE 7l4LLR5BwWhjjCDs3DjgjmgEbLDi2qnjbAVScurpYM4Q8NDqbHFmWb+allHm4xBm4QiEK25TiF8I4 i8VMyyjqXs8sjo42qj+uR+iByHiuWavwnFQ9on9WYgosh+JRZfnsYbhQnBvcfmMeUhocmuocep8yd PUsVq2miMPJax1MzZQL0IDJI7rdJYczXcvlSDpBoMaty4L2N5ea//L++YZ+rR36rxcBKH4q5l3ic+ kDqe+INCpZ8ulWG6nkLm2KHV60mW/K19wb190Von6etGTzHwz+A6/GRMRMz2JP7B2QrrPPRZzb+BB RvluFgwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKjx-00000001tZx-0efw; Tue, 06 Aug 2024 14:00:41 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKhy-00000001sxS-1tEJ for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2024 13:58:39 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 92D9A60FC7; Tue, 6 Aug 2024 13:58:37 +0000 (UTC) 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_065838_586227_17BF58DD X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13754928 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55E7AC3DA64 for ; Tue, 6 Aug 2024 14:01:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CWI7EPON3sL3a8kDk1nMk2tcf5r9svP81eztSJZ9cxg=; b=3Xaxf90DDc0tEsP49EzsDkmQ79 vqQMuqYvHUqCJeEN0u1DgPfAerYhPOghuhTVONFIaulRAfEv2TSQoAXHoI7HhJLzmaMH3OWCioiI7 qy2KZXhl9FM/FXtymDB1yK4N14zLijxTQBrRwr1P/rFOkJAKL+vZGbDEecXAtADIAorQWd3LB+7lm EYWuMZSEYlaPWKO+ZTeaRg48eqnCLTExXc18dZ5TDMPmKW4M7RNBI/4zU9thkjvQXuOfq8qyDDrXn GbZUT0IkPIjp0ynxOVyqra+X87d/YbKJE5VKfkEFdLzvoCs88w9V52bCq+gjKSCBERzJwioNaThry xsA5K7ZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKkR-00000001tjz-2fqh; Tue, 06 Aug 2024 14:01:11 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKhz-00000001sxr-2ulB for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2024 13:58:40 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 0BB1360FB9; Tue, 6 Aug 2024 13:58:39 +0000 (UTC) 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() 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_065839_830585_AF479EF3 X-CRM114-Status: GOOD ( 12.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13754929 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 642E8C3DA64 for ; Tue, 6 Aug 2024 14:01:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=x4s+y7W87aYLdnkCkHLDWfMV2ioPXxmZ9pctH6zetQk=; b=SwJqpaFT5gJ4O/VObwLJX+MIqc qmi9lWKaOdsXzA0s34XSVDEl5yKWp5j31JnF/l0+uqjm8f1SwyctrfdEBfSPI/aAsKX2C2+cyIydA F9ZCxOlJShAAIBK/YQ0V5RxQhQ/rwQBk/aMsja6i2nbbLSjI7n2BzXDE5EWqaI4v/EnKsJ50LMILN nVQCbi1jhOMXeCLcbvXP6b+Uqe9Z3EuoMUr/kuDVm06SuOPZqzyjOQ3iqrvVduUZhfianksZaYai1 AuPPR6gjytLwv3EM3RVuX+1Qa9E4zZsTJFIj5iDlJvPQRIhNtkN1vxFvrzUWfFOLj6peaWAHOWaDy E882xbNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKkw-00000001tt4-2YQa; Tue, 06 Aug 2024 14:01:42 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKi0-00000001sxS-2vay for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2024 13:58:42 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 7E77760B82; Tue, 6 Aug 2024 13:58:40 +0000 (UTC) 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_065840_904403_C88C5312 X-CRM114-Status: GOOD ( 13.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13754930 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C80A3C3DA64 for ; Tue, 6 Aug 2024 14:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=21ePjSIT5KHFxpPK9mQSe566EO1z7JDDP0BuD8VA+eU=; b=HByzZR8eUbi61l3kSGayXpzKHD Xv7Wd9eYKi1Hiwv76a/N3LVNYqgOSoJpvBVycEpl6VFite+ai9kPqiM+uFxM1vo9gR5nTmj3D1SLb 36bq+wvQqQ+OV7nQnNOOQonGtxA0L8KkiZf8v9ZSVvLNu3AUS6R1R0stSTLaTWmJ5Mm5x877h3/CE gpa2mRINvFjs68QJVSTFXE9h6BGQquDokJWcbd4T2e/p6GIpAIemUiOmHoQZTTW2a/ZMIv1nYz/LZ Xsb9gt5LiN3raVxxEZiP5hIU/2d/tX5w4ep0cdPeoVch8ymIJ66gsZljZqKMZzW0q7W9qTNngjOJd CGbNzF9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKlS-00000001u42-3Lpq; Tue, 06 Aug 2024 14:02:14 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKi2-00000001sya-1tIP for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2024 13:58:43 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id F28EE60FB9; Tue, 6 Aug 2024 13:58:41 +0000 (UTC) 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_065842_572165_0D5B752B X-CRM114-Status: UNSURE ( 8.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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"