From: Krzysztof Kozlowski <krzk@kernel.org>
To: Alexey Charkov <alchark@gmail.com>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Rob Herring <robh@kernel.org>, Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/3] clocksource/drivers/timer-vt8500: Add watchdog functionality
Date: Wed, 7 May 2025 06:33:20 +0200 [thread overview]
Message-ID: <e05151a1-2112-497b-affa-d0e95c71b627@kernel.org> (raw)
In-Reply-To: <20250507-vt8500-timer-updates-v1-2-6b76f7f340a6@gmail.com>
On 06/05/2025 22:06, Alexey Charkov wrote:
> VIA/WonderMedia system timer IP can generate a watchdog reset when its
> clocksource counter matches the value in the match register 0 and
> watchdog function is enabled. For this to work, obvously the clock event
> device must use a different match register (1~3) and respective interrupt.
>
> Check if at least two interrupts are provided by the device tree, then use
> match register 1 for system clock events and match register 0 for watchdog
> respectively.
>
> Signed-off-by: Alexey Charkov <alchark@gmail.com>
> ---
> drivers/clocksource/Kconfig | 6 +++-
> drivers/clocksource/timer-vt8500.c | 58 ++++++++++++++++++++++++++++++++++----
> 2 files changed, 58 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
> index 487c8525996724fbf9c6e9726dabb478d86513b9..e4f9aade058af1adc279274c6c711658f9f4cd0a 100644
> --- a/drivers/clocksource/Kconfig
> +++ b/drivers/clocksource/Kconfig
> @@ -177,9 +177,13 @@ config TEGRA186_TIMER
>
> config VT8500_TIMER
> bool "VT8500 timer driver" if COMPILE_TEST
> + depends on ARCH_VT8500 || COMPILE_TEST
Does not look related to this patch.
> depends on HAS_IOMEM
> + select WATCHDOG
Drivers are not supposed to select user-visible symbols.
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-05-07 4:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-06 20:06 [PATCH 0/3] clocksource/drivers/timer-vt8500: clean up and add watchdog function Alexey Charkov
2025-05-06 20:06 ` [PATCH 1/3] clocksource/drivers/timer-vt8500: Add defines for magic constants Alexey Charkov
2025-05-06 20:06 ` [PATCH 2/3] clocksource/drivers/timer-vt8500: Add watchdog functionality Alexey Charkov
2025-05-07 4:33 ` Krzysztof Kozlowski [this message]
2025-05-07 5:46 ` Alexey Charkov
2025-05-06 20:06 ` [PATCH 3/3] ARM: dts: vt8500: list all four timer interrupts Alexey Charkov
2025-05-07 4:32 ` Krzysztof Kozlowski
2025-05-07 5:48 ` Alexey Charkov
2025-05-07 5:52 ` Krzysztof Kozlowski
2025-05-07 5:57 ` Alexey Charkov
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=e05151a1-2112-497b-affa-d0e95c71b627@kernel.org \
--to=krzk@kernel.org \
--cc=alchark@gmail.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=tglx@linutronix.de \
/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