Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp509426lqp; Wed, 22 May 2024 10:45:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEnQadwlmhovweXDG/llvQTbAFZUD23zs/Slw2g/L+qI/HsslYXox2DwZHYu3HmCUKG5wSCxYBRyypHAj3PD/BMF3T2MKnjv/YqR4w/w== X-Google-Smtp-Source: AGHT+IGkZYPXEzxcjXWYSIlQzSblNv/tRejo23G8se1yGmYNhAT3zcilbe/34NFF18wSfwYkJuPp X-Received: by 2002:a50:9345:0:b0:575:a0c:4b8c with SMTP id 4fb4d7f45d1cf-57832c57d20mr2023911a12.38.1716399901744; Wed, 22 May 2024 10:45:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716399901; cv=pass; d=google.com; s=arc-20160816; b=0Lw9FjpTYqfWJPa0v51i47TTizZt5zXBFcX0jLCsybcKhYXuiD2mmvDnYHEiklu0Jd e94OsLRKyzF3dJX6ihMrVIWALKfKRJZDLQjmueqjfkXb3X9I2m+aF9qh8ez7YL2//NQd nyZla0o7KmvPwVA5WzXgl2P5KPHqEyFnIr7bj6S/b64MbDAVfHCWoF2JaB3nj1lmr0ew +yNhDHuS3Rrnd0GijdtUpVgVzFoA5PPtoYDO6HGtK5L5Kx1ncxBRrAU9vcmPj3Gbh2MN a1o1x99F+zLodnS0p7WdCX6TBg9v9/bd/kMQBcalYoU98GbkWlT37CHHpNmPoCPVJ+A+ T3uw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=PvOPgYCIDwZ6uxpIoHxhtWPZBwhoUh+FvauhroVnzf4=; fh=Vk/dODjBOi6eFRPhX8NjDVJ5EFwZtLe6KIg+EgGT4Pw=; b=rlUCwQhqs9tzEnOKPMxJ1r1sLyXdN2JRhCGFaL/jjng6OnMSAa83eWKLTNYfhLWGlp jA2Z80oDHpVduDL2renmnmKUrC302xK8WJvlKw0bQvGx1ynxptBXQv440AIDmo1Mp26y h0wkpFtt0fgHbstq9riYam/AXGqrp9On43MXJdSEg74eJphrcHZ3CYhwp6bOVMWtgvtL j6mdS3kWrKIRWQ02sQYiVS18ij0rNDb3RWnc9lcLsDDyYJ0bpjXmSqme6Ws8Ir7ck692 GKOWwuw5piOUluFTLrbv5DiP6+rECGQqhwEWenyFQvtF1tg5GQ5Rom/jkY8Y6LXpbFpe BZcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=clnf1PVx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c32c7bfsi15191683a12.449.2024.05.22.10.45.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 10:45:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=clnf1PVx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186568-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 504C71F22A1A for ; Wed, 22 May 2024 17:45:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE205142E6E; Wed, 22 May 2024 17:44:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="clnf1PVx" 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 0389776048 for ; Wed, 22 May 2024 17:44:54 +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=1716399895; cv=none; b=WtrdPFADn+7zdazIZALyIxbp/rJqSpX7XI+na+PiqwORh55iKmt6NP/VsN1+dTkVYjXFTxZDnvwJ9Aa6cSEBlFmQ1hHzpeqarKhRQxO6sp0/dJEl7agpUYKeas4aYkEmf0tcm2GPwOKbYBuhCcc7wewO2hJ10kpVxqCixYZKG80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716399895; c=relaxed/simple; bh=ISa/9A9sTfOrlUnAeGnim+Gt5o4gpr/3BuYQQpAPN2E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=AHCOdOJ98nlIwAK8uETBsWNc6KncZbbAicBvWfCuYh6DoBfbxyxEPGOdCGijpqj3b0LOMCyrQtrQ0QqSbviLWWQ5x2aA+/Qq7BiLFq8AW8Njb6w/cmgkfKJk19GemDHgKUmmmhDWY+1GyqzRt6rthlCJs6YVfjua4Ydp5EyAgQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=clnf1PVx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1172C2BBFC; Wed, 22 May 2024 17:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716399894; bh=ISa/9A9sTfOrlUnAeGnim+Gt5o4gpr/3BuYQQpAPN2E=; h=From:Date:Subject:To:Cc:From; b=clnf1PVx5pjEIBXXPLoZHu7Wc9+wp7wYokdhCiFEUIWQksZfqGuAtYCxEf8OGiZS8 bCvXCk39ABvG925EuhFZ35B2nOruJKwf8T9istziSOsn4Fa5ConD+srCCQuD9iL/Ew WETLZinMfQQ6uecsxLhY2mQAgr7NO7ughzPcsrKZJY3m/XD5jsT1NyhbJ0k9LAAU2K 7vCMi3/t/Kql0Q3b5imC0a4ec4fTDNdNhvqMhhk67X2BxTNYgynYXNkjj5oMDJe1jU joIGQLta4OMjKbVteqr3L0EWJyQnuL4pXDqQtBtkS5Fc2E2TSLnuqEo6ga8Cz0zZ0C 4ckwKiNAhKGpQ== From: Mark Brown Date: Wed, 22 May 2024 18:44:41 +0100 Subject: [PATCH] clocksource: sp804: Make user selectable 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240522-arm64-vexpress-sp804-v1-1-0344cd42eb77@kernel.org> X-B4-Tracking: v=1; b=H4sIAAgvTmYC/x2MSQqAMAwAvyI5G6i11uUr4kHbqDm40EARin+3e ByGmQRCgUlgKBIEiix8nRmqsgC3z+dGyD4zaKWNarTGORzWYKTnDiSCcnfKYG0bb/u6W1TrIKf Zrfz823F63w9Kr0K/ZgAAAA== 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-621fa X-Developer-Signature: v=1; a=openpgp-sha256; l=1729; i=broonie@kernel.org; h=from:subject:message-id; bh=ISa/9A9sTfOrlUnAeGnim+Gt5o4gpr/3BuYQQpAPN2E=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBmTi8TQANlzhzfGOBFS1jd6/1jJABcH9JyDpWkLZOO ikTKWJqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZk4vEwAKCRAk1otyXVSH0OBCB/ 0aZpC6NKdXSpgQyq9v0fvqYE9FhffOVFgF6tT3x8iUzVJk0Ie5DmJK0S7qx7o2xU7iRq6PRlSGsAgR njHkxfVrWetShIZ7Paq4PxA4pB8yti98rw8FsxOuICJjtMeErJj+lx4/NLEgbrpzm7DTHZcgMrX/SI OChKJZ3TkgNaIy872LmoIejlK9QRZ1Mf8aNGzUJi5fleIAi2V1i1yT6IIcmpKbb/gN/b04tEQfaBbM T8j/ouOAbEbiu/7cy744tPe+8h+mKl6byuSrD7dNYKfbela270OLBGH4On9X1h+Cj9IZ1YuYKFFgrP Uu0wAhxV9aX0poip0AqR6v5YHbzFXv X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB 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 Signed-off-by: Mark Brown --- drivers/clocksource/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 --- base-commit: a38297e3fb012ddfa7ce0321a7e5a8daeb1872b6 change-id: 20240522-arm64-vexpress-sp804-365d6938b07c Best regards, -- Mark Brown