From patchwork Wed May 29 19:48:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13679451 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 3EC46C25B75 for ; Wed, 29 May 2024 19:48:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id:MIME-Version:Subject: Date:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+IGn3LOF0ejBsA6r5Q2530LxN4ubvw8vV8M+ax3fQ+I=; b=r6bbcg/teW+fQ9 LQccLg9b3Xcgb65h4YzG1nOYtRKH99AXzdOhA7MX6izOvr7Ygxgzbw1kCCFZ6X/93cIWyYd20G6k+ VLlayfsMZKHic5Laxqn0exPIbMEWYledIPx/yiVBbiyVxV9q6MxxV/Vce8CF1U2HscH0ArPbLf6jL sKXddAlBhjfgsCRjqW3IYrYyHpL9LRA48az/294uJquCiwvHKVdyZujriSCoM8G0Uv9Ck8uyAQSIK y2IGGnC/8ICYUGiEYy6At9Ha3sNm0tNg0Ry5qpqomxRJ6H36ZShng36sAKFgST+7cR9brwnTReICA KQA1bND29MnvNcCDC/Ig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCPHh-00000005N71-0LBg; Wed, 29 May 2024 19:48:29 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCPHd-00000005N4n-3Qu1 for linux-arm-kernel@lists.infradead.org; Wed, 29 May 2024 19:48:27 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id CBA47CE0D85; Wed, 29 May 2024 19:48:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CBDBC113CC; Wed, 29 May 2024 19:48:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717012103; bh=TSNUIaMF3kpXKqglBYc37Xm+HyAvY4aeML8pg247L1M=; h=From:Date:Subject:To:Cc:From; b=u4SHCxMyZu/nbNoHUIZ9X9SolX1ensSBOVtAhPSy+/JWnl3Iujd2VaKKhWvjErehf uQM1zB/8N9OFrGCajBHUzYB5LAm3Srj22LbMYbqMfmKb/ntQ2bFaYoIj50OefTCy7r eBC8KV2XCjGHC5qXjfcOGrNgWyJ7XlpBVaysrpYOclyOF4lQy/+52Nu/ctEJvtqhXq iDJorpIzhm7SEkxq6jxzIeyL49g+5ifS6qfCiB8P8aVQuI1iUuP5iBx90wX5mjlnZP gfHlARDkd56hu8ZrQf46lj/yDueT8Yo3jhLlBXHl02Aedpbkr6hjPj4eJXJYzqp9V+ +pJO/b7tJdBRg== From: Mark Brown Date: Wed, 29 May 2024 20:48:14 +0100 Subject: [PATCH v2] clocksource: sp804: Make user selectable MIME-Version: 1.0 Message-Id: <20240529-arm64-vexpress-sp804-v2-1-c542a80af33a@kernel.org> X-B4-Tracking: v=1; b=H4sIAH2GV2YC/4WNQQ6CMBBFr0Jm7ZhSCkVW3sOwADpCowKZMQ2G9 O5WLuDy/Z///g5C7EmgyXZgCl78MifQpwyGqZtHQu8Sg1baqFJr7PhVGQy0rUwiKGutDBZV6ap LUffKDpCmqbv77dDe2sSTl/fCn+Ml5L/0jzDkmKMqjBmc0dRbe30Qz/Q8LzxCG2P8Av5UU5C5A AAA To: Daniel Lezcano , Thomas Gleixner , David Abdurachmanov Cc: Sudeep Holla , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ross Burton , Mark Brown X-Mailer: b4 0.14-dev-2ee9f X-Developer-Signature: v=1; a=openpgp-sha256; l=1926; i=broonie@kernel.org; h=from:subject:message-id; bh=TSNUIaMF3kpXKqglBYc37Xm+HyAvY4aeML8pg247L1M=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBmV4aEWf26AfwBkWBp0X95MoX+Epah6ddUKq5agg+2 812d5BCJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZleGhAAKCRAk1otyXVSH0LlFCA CGlCHUjhuUGyWIONwdnesEQYaouzvq7EmI1OVMS3BVrm5gpyEx/l48SH+VcFzMwjv8Kc3Ak3mmx1f/ hfzMOsIw+1nD/pYc9H85XwecpRCGllzHZIvuB2v7ry553jKMkPE7udQFBnwH8XpS78YJdDugz7sr7D mUzcwrOaSYzNBM4z7rkL2OBlgyZmQoY0oWoGwpMYApdVBT7XMGXwkgtOzvxgCwis+QsKsIz0fNARVu nqYq+ymlFpmMbVceH4jCczsRLHqNU7Cm2q7WBnP7z1rNiUDxPfdB1c0Jt9R4DGLWYgdcHS/CL+d6hW HpucJvXdkO/B6URpfSAlKUbPdyZnfW X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_124826_249036_B599A69E X-CRM114-Status: GOOD ( 13.04 ) 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 sp804 is currently only user selectable if COMPILE_TEST, this was done by commit dfc82faad725 ("clocksource/drivers/sp804: Add COMPILE_TEST to CONFIG_ARM_TIMER_SP804") in order to avoid it being spuriously offered on platforms that won't have the hardware since it's generally only seen on Arm based platforms. This config is overly restrictive, while platforms that rely on the SP804 do select it in their Kconfig there are others such as the Arm fast models which have a SP804 available but currently unused by Linux. Relax the dependency to allow it to be user selectable on arm and arm64 to avoid surprises and in case someone comes up with a use for extra timer hardware. Fixes: dfc82faad725 ("clocksource/drivers/sp804: Add COMPILE_TEST to CONFIG_ARM_TIMER_SP804") Reported-by: Ross Burton Reviewed-by: Sudeep Holla Signed-off-by: Mark Brown Acked-by: Mark Rutland --- Changes in v2: - Rebase onto v6.10-rc1. - Link to v1: https://lore.kernel.org/r/20240522-arm64-vexpress-sp804-v1-1-0344cd42eb77@kernel.org --- drivers/clocksource/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 change-id: 20240522-arm64-vexpress-sp804-365d6938b07c Best regards, diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 34faa0320ece..ca6045f90000 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -390,7 +390,8 @@ config ARM_GT_INITIAL_PRESCALER_VAL This affects CPU_FREQ max delta from the initial frequency. config ARM_TIMER_SP804 - bool "Support for Dual Timer SP804 module" if COMPILE_TEST + bool "Support for Dual Timer SP804 module" + depends on ARM || ARM64 || COMPILE_TEST depends on GENERIC_SCHED_CLOCK && HAVE_CLK select CLKSRC_MMIO select TIMER_OF if OF