Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Enric Balletbo i Serra" <eballetbo@kernel.org>
Cc: Frank.Li@kernel.org, imx@lists.linux.dev
Subject: Re: [PATCH v2] clocksource: move NXP timer selection to drivers/clocksource
Date: Thu, 14 May 2026 10:03:59 +0000	[thread overview]
Message-ID: <20260514100359.8EF16C2BCB3@smtp.kernel.org> (raw)
In-Reply-To: <20260513-fix-nxp-timer-v2-1-533b99c57b67@redhat.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] `VF_TIMER_NONE` is selectable on Vybrid (`SOC_VF610`) platforms but relies on hardware that does not exist on those platforms.
--

commit 7af32213cbfafc4c689a6d3a071f0b9a62837a94
Author: Enric Balletbo i Serra <eballetb@redhat.com>

clocksource: move NXP timer selection to drivers/clocksource

This commit relocates the NXP clocksource selection from the ARM mach-imx
architecture Kconfig to the drivers/clocksource Kconfig so it can be shared
across architectures. It updates the choice block to support ARCH_S32 and
adds a None option to allow using the standard ARM Architected Timer.

> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
> index d1a33a231a44c..15c02d3e9dbff 100644
> --- a/drivers/clocksource/Kconfig
> +++ b/drivers/clocksource/Kconfig
[ ... ]
> +choice
> +	prompt "NXP clocksource for scheduler clock"
> +	depends on SOC_VF610 || ARCH_S32
> +	# Default to Global Timer for Vybrid (32-bit)
> +	default VF_USE_ARM_GLOBAL_TIMER if SOC_VF610
> +	# Default to None for S32 (64-bit)
> +	default VF_TIMER_NONE if ARCH_S32
> +
> +	config VF_USE_ARM_GLOBAL_TIMER
> +		bool "Use NXP Vybrid Global Timer"
> +		depends on ARCH_MULTI_V7 && SOC_VF610
> +		select ARM_GLOBAL_TIMER
> +		select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
> +		help
> +		  Use the NXP Vybrid Global Timer as clocksource.
> +
> +	config VF_USE_PIT_TIMER
> +		bool "Use NXP PIT timer"
> +		select NXP_PIT_TIMER
> +		help
> +		  Use NXP Periodic Interrupt Timer (PIT) as clocksource.
> +
> +	config VF_TIMER_NONE
> +		bool "None (Use standard Arch Timer)"
> +		help
> +		  Do not use any specific NXP timer driver. Use the standard
> +		  ARM Architected Timer instead.

Does this allow VF_TIMER_NONE to be selected on Vybrid (SOC_VF610) platforms?

Since the choice block itself depends on SOC_VF610 || ARCH_S32, this option
is visible on Vybrid builds. If selected, it would result in a kernel
without a valid scheduler clocksource because the Vybrid SoC lacks the
standard ARM Architected Timer hardware.

Could VF_TIMER_NONE have a depends on ARCH_S32 or !SOC_VF610 restriction to
prevent creating unbootable kernels on Vybrid?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260513-fix-nxp-timer-v2-1-533b99c57b67@redhat.com?part=1

      reply	other threads:[~2026-05-14 10:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-13 18:22 [PATCH v2] clocksource: move NXP timer selection to drivers/clocksource Enric Balletbo i Serra
2026-05-14 10:03 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260514100359.8EF16C2BCB3@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=eballetbo@kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox