From: Guenter Roeck <linux@roeck-us.net>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/3] watchdog: s3c2410_wdt: Add Exynos7885 support
Date: Sat, 5 Dec 2026 10:27:48 -0800 [thread overview]
Message-ID: <6c3fb4e2-704b-429f-ac5c-e576fbb68006@roeck-us.net> (raw)
In-Reply-To: <sashiko-outbox-250389@kernel.org>
Paul,
On 12/4/26 10:11, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue to consider:
> - [Medium] watchdog: s3c2410_wdt: Exynos7885 lacks cluster-index for
> dual-cluster WDT
> --
>
> commit 7a5a0506c679738f236f832bf5f15a5fb7bbbdcb
> Author: Paul Menzel <pmenzel@molgen.mpg.de>
>
> watchdog: s3c2410_wdt: Add Exynos7885 support
>
> This commit adds Exynos7885 variant data and the samsung,exynos7885-wdt
> compatible entry to the s3c2410 watchdog driver, using the Exynos5 PMU
> register offsets with bit 24.
>
>> diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c
>> index ab04ae9374d25..67d4e55093b9b 100644
>> --- a/drivers/watchdog/s3c2410_wdt.c
>> +++ b/drivers/watchdog/s3c2410_wdt.c
>> @@ -259,6 +259,16 @@ static const struct s3c2410_wdt_variant drv_data_exynos7 = {
>> QUIRK_HAS_PMU_RST_STAT | QUIRK_HAS_PMU_AUTO_DISABLE,
>> };
>>
>> +static const struct s3c2410_wdt_variant drv_data_exynos7885 = {
>> + .disable_reg = EXYNOS5_WDT_DISABLE_REG_OFFSET,
>> + .mask_reset_reg = EXYNOS5_WDT_MASK_RESET_REG_OFFSET,
>> + .mask_bit = 24,
>> + .rst_stat_reg = EXYNOS5_RST_STAT_REG_OFFSET,
>> + .rst_stat_bit = 24,
>> + .quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET |
>> + QUIRK_HAS_PMU_RST_STAT | QUIRK_HAS_PMU_AUTO_DISABLE,
>> +};
>> +
>> static const struct s3c2410_wdt_variant drv_data_exynos850_cl0 = {
>> .mask_reset_reg = EXYNOS850_CLUSTER0_NONCPU_INT_EN,
>> .mask_bit = 2,
>
> [Severity: Medium]
> Should Exynos7885 use per-cluster variant data selected via
> samsung,cluster-index in s3c2410_get_wdt_drv_data() instead of a single
> variant hardcoded to bit 24?
>
> In-tree Exynos7885 code shows a dual-cluster SoC with two watchdog clock
> gates: exynos7885.dtsi defines both cluster0 and cluster1, and
> clk-exynos7885.c defines CLK_GOUT_WDT0_PCLK and CLK_GOUT_WDT1_PCLK. Other
> dual-cluster Exynos SoCs in s3c2410_wdt.c select variants by cluster index.
>
> Together with commit "dt-bindings: watchdog: samsung-wdt: Add Exynos7885
> compatible" forbidding samsung,cluster-index, hardcoding a single PMU bit
> locks in a single-instance DT ABI. Supporting the second cluster watchdog
> later would then break backwards compatibility or need a new compatible.
>
> Unless the cluster 0 watchdog is absent or unusable in hardware and
> documented as such, supporting samsung,cluster-index here would avoid locking
> in an incompatible binding.
>
While I agree with Sashiko's concern, I don't think this is my call to make.
I plan to apply this patch if the bindings patch is approved by a DT maintainer
unless I hear otherwise from you.
Thanks,
Guenter
next prev parent reply other threads:[~2026-12-05 18:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 17:48 [PATCH 0/3] Add the Exynos7885 watchdog Paul Menzel
2026-12-04 17:48 ` [PATCH 1/3] dt-bindings: watchdog: samsung-wdt: Add Exynos7885 compatible Paul Menzel
2026-12-04 18:05 ` sashiko-bot
2026-12-04 17:48 ` [PATCH 2/3] watchdog: s3c2410_wdt: Add Exynos7885 support Paul Menzel
2026-12-04 18:11 ` sashiko-bot
2026-12-05 18:27 ` Guenter Roeck [this message]
2026-12-04 17:48 ` [PATCH 3/3] arm64: dts: exynos: exynos7885: Add the watchdog Paul Menzel
2026-12-04 18:10 ` sashiko-bot
2026-12-05 16:44 ` [PATCH 0/3] Add the Exynos7885 watchdog David Virag
2026-12-05 18:08 ` Guenter Roeck
2026-12-05 18:26 ` David Virag
2026-12-05 18:22 ` David Virag
2026-12-05 18:31 ` Guenter Roeck
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=6c3fb4e2-704b-429f-ac5c-e576fbb68006@roeck-us.net \
--to=linux@roeck-us.net \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=pmenzel@molgen.mpg.de \
--cc=robh@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.