From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F88E3FB1B; Mon, 23 Jun 2025 22:04:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750716243; cv=none; b=FAx3Ff3MmY/HyUMTUE0hblwi/PJVHJJdhSqgSlFDsXt3YyspjDN9OqX1GqALZPA3CZNQ7+GurTLGoce0yUY00M0BIXHdSf2Isbn0xZg93wvaTj+piPZsPs4tOwd8Fg9P5u1BBlR710qsOw1rr/TUQD8UDtILEbuefBrFmZm2pcw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750716243; c=relaxed/simple; bh=ucs9yuDpXAXYH64rd1Tml9otnXyMLogyAOFBKK0cmoI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r6tgfBSf39sHhIH3i0/2zkSxRyxIyawPPmExssSZCcHbipgB9SAsG9lhVTolRV74g4NewCfOC38XSy4RxcJiFlCGtF63ILjqUOmmgwHWkyYVo5R30v4G8YMzcHSETeCFGcPyyIjINip6NJ0Q57f1jFpS+GaP7GjDzQN9vtCe21A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XZhKhvzP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XZhKhvzP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A131AC4CEEA; Mon, 23 Jun 2025 22:04:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750716243; bh=ucs9yuDpXAXYH64rd1Tml9otnXyMLogyAOFBKK0cmoI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XZhKhvzPEaMb47a2+ZPiXFFJDdJeiu58pdvGDKi18CJviyTUUoQ2NU3DCrLSKS377 RA7P4uIDKjPsZA2Rd0eeKv4lypybMz+nPi0/ui+64QR/WdgpJJClg4AFVr0BE5/bVN qR9aIrubB7mkQllUcEgLNtYWTs4NQ/AZrtQqIxS0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Marcus Folkesson , Guenter Roeck , Wim Van Sebroeck , Sasha Levin Subject: [PATCH 5.15 337/411] watchdog: da9052_wdt: respect TWDMIN Date: Mon, 23 Jun 2025 15:08:01 +0200 Message-ID: <20250623130642.132216931@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250623130632.993849527@linuxfoundation.org> References: <20250623130632.993849527@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Marcus Folkesson [ Upstream commit 325f510fcd9cda5a44bcb662b74ba4e3dabaca10 ] We have to wait at least the minimium time for the watchdog window (TWDMIN) before writings to the wdt register after the watchdog is activated. Otherwise the chip will assert TWD_ERROR and power down to reset mode. Signed-off-by: Marcus Folkesson Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20250326-da9052-fixes-v3-4-a38a560fef0e@gmail.com Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Sasha Levin --- drivers/watchdog/da9052_wdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/da9052_wdt.c b/drivers/watchdog/da9052_wdt.c index d708c091bf1b1..180526220d8c4 100644 --- a/drivers/watchdog/da9052_wdt.c +++ b/drivers/watchdog/da9052_wdt.c @@ -164,6 +164,7 @@ static int da9052_wdt_probe(struct platform_device *pdev) da9052_wdt = &driver_data->wdt; da9052_wdt->timeout = DA9052_DEF_TIMEOUT; + da9052_wdt->min_hw_heartbeat_ms = DA9052_TWDMIN; da9052_wdt->info = &da9052_wdt_info; da9052_wdt->ops = &da9052_wdt_ops; da9052_wdt->parent = dev; -- 2.39.5