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=1796322701; b=z+ZanKfahe1YORSXn721Bm9E326L++OLyT3GKJ17tbbZ9p+F3ApgHYoSwRQfs8Ui+NxD OF2VuEAvdqusFblxtEjr1qpanEbkbG6DSlAUj5FRk5emSO3sNSkgjudGU2ePc6xZxPDph 2nEeOhTtHvp82fZ1F9yMtCWdduVyBF8+JdNyCeQI+nouL7TZjoJH/g2rOhuyrYUdf/Pf5 dBtS9afllG5qp3PbZcv1z8w70dKFpcLK/kSd+WLteS8Qa+pgeiyj6ExhAs8XV9bglxxAV fOt8tzCWLJwGw81VbBMdnELFB9mISsnkl92RNwJtySWx1Pny+9g6vZz9GLT2wNznBag== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796322701; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=FO8A0lwVOA/yqnbbpf8ZK+ni/UEPtZ1h3pC4G2MFtsU=; b=0Ha6JjZew0UGgZvXEdYs/JSnIm6fUhJIdurTb4AX0AKz1dvzRC0D1CRyZIYZgwxhv4xn FGGKiA0aFN8/CdPs0URQICWH4i11MtYo49VdRbMY+z0MBJOqnPMHJoZPxJkGILYoPAKND SDcJwWDrE3Zc5KUWQNeL6RPPz8eikHhoxnnMIZuX+gmtolfZNS9vyZlkUtx0cXerNM2yL M7oO2AITLlitA4a8wmz0Q8iLxSIlnTPnLQWLK9P/8qQr2RkgCIqE/EA10bVCdbw6sNiXW fk7fzY+1Kg4Gey3762l4PXNX9yIs6VYwhso/l82szAvIKoxaK2y/m8PwJD1LmHYQTMA== 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=Lt9lGlgg; 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 6AD2E606A332 for ; Thu, 3 Dec 2026 18:31: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=Lt9lGlgg Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1699F1F00896; Thu, 3 Dec 2026 18:31:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796322701; bh=FO8A0lwVOA/yqnbbpf8ZK+ni/UEPtZ1h3pC4G2MFtsU=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=Lt9lGlggE0o1554pUcFaII1V7LrTq8TKY341h9B1CB/OZO26sc1F7pAowGgWx9f8l BlkhhwAqhHrMxVbhM5qvrxW63tORFKH3GCu6LWC7JPGPwWUR/dTLUUZnrTP1TNuxR5 lx8ALoCE2TBBIziDTuAvETmMP/cKVSeNgq7lOEy5vYnKhvWA86D3Nx/5+DS2besctA h8E/Y/Jaa+3dwFqn7ZdpWcVGmZ9EXccTA0yQAQbJpTCk4mnP1CUzXbV1QfG3rU1koM 1GGAIVSNGlYlRw+OgC+DscIQqM4qq8Bj42v//PPV9mGPItXh2zWAoEYb4goO88mNi7 9FJ30pAFsBhvw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/6] watchdog: da9063: Stop ping worker on system suspend Reply-To: sashiko-reviews@lists.linux.dev To: "Lee Jones" , linux-watchdog@vger.kernel.org In-Reply-To: <20261203173039.1142495-2-lee@kernel.org> References: <20261203173039.1142495-1-lee@kernel.org> <20261203173039.1142495-2-lee@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 18:31:40 +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: - [High] watchdog: da9063: watchdog_dev_resume() ping violates 256 ms reset window -- commit 49cf28fc9c5d60090a84633d01c89c66ae0ab80c Author: Lee Jones watchdog: da9063: Stop ping worker on system suspend This commit calls watchdog_stop_ping_on_suspend() in da9063_wdt_probe() before registering the watchdog device so the watchdog ping worker stops during system suspend. > diff --git a/drivers/watchdog/da9063_wdt.c b/drivers/watchdog/da9063_wdt.c > index ca901a755b3a2..7ebf8d9e04ac1 100644 > --- a/drivers/watchdog/da9063_wdt.c > +++ b/drivers/watchdog/da9063_wdt.c > @@ -260,6 +260,8 @@ static int da9063_wdt_probe(struct platform_device *p= dev) > set_bit(WDOG_HW_RUNNING, &wdd->status); > } > =20 > + watchdog_stop_ping_on_suspend(wdd); > + > return devm_watchdog_register_device(dev, wdd); > } [Severity: High] Can this trigger a DA9063 hardware reset on resume when dlg,use-sw-pm is enabled? Setting WDOG_NO_PING_ON_SUSPEND registers watchdog_pm_notifier(), so PM_POST_SUSPEND now runs watchdog_dev_resume() -> __watchdog_ping() shortly after dpm_resume_end() calls da9063_wdt_resume(). When the watchdog is active or running from boot, da9063_wdt_resume() restarts the timer via da9063_wdt_start() without updating wd_data->last_hw_keepalive, starting a fresh 256 ms reset-protection window. Because __watchdog_ping() checks min_hw_heartbeat_ms against the stale pre-suspend last_hw_keepalive, it invokes da9063_wdt_ping() within 256 ms of the restart and causes the PMIC to reset the system. Calling watchdog_set_last_hw_keepalive(wdd, 0) after da9063_wdt_start() in da9063_wdt_resume() would record the restart timestamp so watchdog_dev_resume() defers the ping until the 256 ms window expires. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203173039.1142= 495-1-lee@kernel.org?part=3D1