From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796407901; b=Qjt57j9qBARxihWEF2tNj+JOC/Umw8L+Vx//YDAYv0/GdDpEIcQ0hxig1yMQU7h6SUOH OHYg50W6V/CaELUYX8cQPh1M7jVqITDyPfu5cx9IiwhlbPxy4TqIToZsjOQJkV6ED4lAJ 20GR9ARTzGwLkNqjqykO89v7tslFTQDPw+SOSil5bJR3gHpktrv5S6JBbJDs3zdG+GNxG hUI2TU/ObNyaLrW2tNP2EVR4uZinxGbc3PSeUiqxWf1Q+nPSJzLIKdDXvLOq/VM9hIELa WyOIIJnsNMDT42xL1vrTXRpj6hQy3UPx4gxnpnl8vX5Y7MfmPiF3QbWvcqPp93amuPw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796407901; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=tgfG+3bKdxQR5zHuBWpUGIKXlbipbPue0g+9Qks3JNQ=; b=UTld2kQQysm2d/x+r9qpBGMF04JgCJRZmNQmz9ftXc2iiy6+zF0pdjPHyUfqznIle06N Tqi30HY0SH92rktZ+pfA/W1zOoLlNc4yWIOx1f4wmSkQshy9Z0+RC3Cm7Ih8Z6a2snVZC sWKWWgQV5Kao8SOsEbCURC7FCvUFv/fmOczgOfkbUKdF1XX2nDgiGPSGEzVqwDPp7fgRP 1SWo8v2RsfQl3UekOhZPVWMDokI6WBPUkYhN8VSznTSF4aen1+HqxDxHBugTe6r6eDFts M9cSQ+IAJGPrLT134kqaQZdKobQnfRiPbaXxZ9+bYTr2n01NDrt8Ujz/1t5s0a9aaaQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="LYEny7/S"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CFEF606A337; Fri, 4 Dec 2026 18:11:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LYEny7/S Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E8701F00A07; Fri, 4 Dec 2026 18:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796407900; bh=tgfG+3bKdxQR5zHuBWpUGIKXlbipbPue0g+9Qks3JNQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=LYEny7/S1iVZ56ILT16qp1AltIoIrq5iUlXqTbsreu25s0YRxZM1CVfK0Dpfn2ZZx cF9dCLfpCXUGe2J919xxAOxKOj/HPVquq6NOoeAYs+HGuRWTOBLvoS11dCuFEd5WeQ UtFkyrYiG895UB8B8zysc9a1NArzAP30zDJBFj/bpjrHVzXt1/VTxL8C9G75qsXosQ dik7GUF3JvjP2f/Fx91JeuqSC0fhOcDXlwuG0qW1C52KtPjRr1IND0ukkA1hCQmwTp ot5Nx8Qoq0OAfPqrd5RG7HNne+NVgxidHdOxHboR7ktkuzv+WrUndWSwhzL0lAjz7a VbeMfqNdjC0sA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/3] watchdog: s3c2410_wdt: Add Exynos7885 support Reply-To: sashiko-reviews@lists.linux.dev To: "Paul Menzel" Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204174814.453359-3-pmenzel@molgen.mpg.de> References: <20261204174814.453359-1-pmenzel@molgen.mpg.de> <20261204174814.453359-3-pmenzel@molgen.mpg.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 18:11:39 +0000 X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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_wd= t.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_exy= nos7 =3D { > QUIRK_HAS_PMU_RST_STAT | QUIRK_HAS_PMU_AUTO_DISABLE, > }; > =20 > +static const struct s3c2410_wdt_variant drv_data_exynos7885 =3D { > + .disable_reg =3D EXYNOS5_WDT_DISABLE_REG_OFFSET, > + .mask_reset_reg =3D EXYNOS5_WDT_MASK_RESET_REG_OFFSET, > + .mask_bit =3D 24, > + .rst_stat_reg =3D EXYNOS5_RST_STAT_REG_OFFSET, > + .rst_stat_bit =3D 24, > + .quirks =3D 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 =3D { > .mask_reset_reg =3D EXYNOS850_CLUSTER0_NONCPU_INT_EN, > .mask_bit =3D 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 locki= ng in an incompatible binding. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204174814.4533= 59-1-pmenzel@molgen.mpg.de?part=3D2