From mboxrd@z Thu Jan 1 00:00:00 1970 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 C20AD1DFD91; Tue, 3 Dec 2024 15:38:35 +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=1733240315; cv=none; b=Tl43uTuVg+/DdC9sRoUV1jPAr6sOBu6DvghR+i/1l57kzv8l+r48/8kpc5D5e3UCufAXIYPB+7w+5qfJzpS1Vdh0UrCCybVBjx21wE9P8tFRd4ZKfPMI8My9wrTZPzqnxnTLnOFzto19sFQoHo0t3RsjLatIc5KyHrhuUDxAzRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733240315; c=relaxed/simple; bh=iUVGosGQNvUkbPMc6TQCc1VoB/w3mtgNBKweP8cvPeo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aLR7rL2CK86lu1R6CFZhlh7Y3D4hw0RiAyifH+OsFyE+HBTobm6X1zv89vF89/BwA5nJKIYTpUg8WKykTfEu9R/JBPpXrgZ3/MDaFOr0Y0vKIv8AWmhlUwtWGP7dhqwhbdMhaKvFKKn0C/uObbQgMhT0k+0q1t/Kdz4rHRrXB5A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CqByPZCu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="CqByPZCu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40D22C4CED6; Tue, 3 Dec 2024 15:38:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733240315; bh=iUVGosGQNvUkbPMc6TQCc1VoB/w3mtgNBKweP8cvPeo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CqByPZCuo+Q8BQY9Mu37kn5MdqTY3VuNoudjN6rxgORHDYv5l4tulgXsIoT92wwqB 77lWv60ce0B7PLRirntTd9lMp2LBZwACIzKxPb1aXnPzuUSsrQMpqmoWF0ZMnwcq7M Lxp/y1gmA7AAF/YkhoLO1aVQvDSQ0tF0Cfi+Fd2Q= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ross Burton , Sudeep Holla , Mark Rutland , Mark Brown , Daniel Lezcano , Sasha Levin Subject: [PATCH 6.12 096/826] clocksource/drivers:sp804: Make user selectable Date: Tue, 3 Dec 2024 15:37:03 +0100 Message-ID: <20241203144747.476160942@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241203144743.428732212@linuxfoundation.org> References: <20241203144743.428732212@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mark Brown [ Upstream commit 0309f714a0908e947af1c902cf6a330cb593e75e ] 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 Acked-by: Mark Rutland Signed-off-by: Mark Brown Link: https://lore.kernel.org/r/20241001-arm64-vexpress-sp804-v3-1-0a2d3f7883e4@kernel.org Signed-off-by: Daniel Lezcano Signed-off-by: Sasha Levin --- drivers/clocksource/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 95dd4660b5b65..d546903dba4f3 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -400,7 +400,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 -- 2.43.0