Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3891446pxv; Mon, 19 Jul 2021 11:15:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuhPg8/MiO9DLLpsUGIzos6xFhfJ/tNrPkXWUgE4+e15W8E9CDBykiRh4n4jRrdYCBaYva X-Received: by 2002:a17:906:4e12:: with SMTP id z18mr28531531eju.543.1626718509387; Mon, 19 Jul 2021 11:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626718509; cv=none; d=google.com; s=arc-20160816; b=xOy5r/KBkRWF+pQ8rT/a3UpkI5gy9tZoE0YccVHYkVFt5XutZ7spchz3ih9iw7B0fp +PbXm0XC28UcNhOcYp2qQyXJ4doM3PMtZhNYlZDADPbC1kt+GIuM0CxcamVyt04mPS7r vzNA5lz1JAuN3PzKk0TNko+smI8Iy3/FXGGcRNPhDAsgL+urf8qGv9qbS5lt0aRyYxaN y4slqrnMjbTU1+D5Ofmc/TzX6QHHmrkbEuASIrMNDjFgvZzw7rwLGPmuLyUlih1X0rZd DeURwnUrO3ijBUKyQ6O2YqdKA5SLx92DsbdJ7be6lkbAhO/J9Zu2wT7UmkUgbdcIY5IM ywng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=b/nbFdzNF9xVoyN7KS46fH62kmPQiSonAO19MZlbwRc=; b=fzze+XjExtz4zF1O34au0LYkXu/s7imtHt44xbDAGPkFhuKlKlHYNMTWuUu5dDw04x qjIef8WydE++EDhOcyJQpYJSn4UusUt0IpjfafXD95kM6XSBbqEaD4XHJ7IF8fHNtRF/ LODGBoN0f9lmjVv3kYy853u/rWejYfs98J4Hxci84quUta6O7K1Y8dhg1a1vyyKMSxev IK3SklSpDUjMMAKd0IM14xZle1sqyMKDf/FanTdX7QNqFBJEQxCz6zcNl9yQFb+4ym8V qH/dtfCwRzXVOEAQBES6i3bapwxiNm/6rJ49S/W0074iVJp0oefwTUR3v7vYK9HDQEAG QJyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oNBRifpd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si9098457edh.461.2021.07.19.11.14.45; Mon, 19 Jul 2021 11:15:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oNBRifpd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348324AbhGSR3B (ORCPT + 99 others); Mon, 19 Jul 2021 13:29:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:47934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241276AbhGSPqS (ORCPT ); Mon, 19 Jul 2021 11:46:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DD42E6145A; Mon, 19 Jul 2021 16:26:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626712014; bh=dtrbSkRrJsSWp/litbZIc5oikePs1EjtcjMjJ7YtHmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oNBRifpdQFkRy4Gh0q754w7OffpSzScpHoQWHtFIS7yog9g028d6VQoPYdvpxe/Ev HNEni3R1UL57+Ar2oyhWc3VpBH52SUlrlfZQMUVnralPxbueUXKG6ROHBdgSUJql+r wHDvBzykzvnayU198nE0+zKt1HK31I9ad9RfTeP8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guenter Roeck , Andy Shevchenko , Kris Pan , Shruthi Sanil , Wim Van Sebroeck , Sasha Levin Subject: [PATCH 5.12 190/292] watchdog: keembay: Upadate WDT pretimeout for every update in timeout Date: Mon, 19 Jul 2021 16:54:12 +0200 Message-Id: <20210719144948.740324599@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144942.514164272@linuxfoundation.org> References: <20210719144942.514164272@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shruthi Sanil [ Upstream commit 0f7bfaf10c0abc979220442bae2af4f1f869c41e ] The pre-timeout value to be programmed to the register has to be calculated and updated for every change in the timeout value. Else the threshold time wouldn't be calculated to its corresponding timeout. Fixes: fa0f8d51e90d ("watchdog: Add watchdog driver for Intel Keembay Soc") Reviewed-by: Guenter Roeck Reviewed-by: Andy Shevchenko Tested-by: Kris Pan Signed-off-by: Shruthi Sanil Link: https://lore.kernel.org/r/20210517174953.19404-3-shruthi.sanil@intel.com Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Sasha Levin --- drivers/watchdog/keembay_wdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/keembay_wdt.c b/drivers/watchdog/keembay_wdt.c index f2f5c9fae29c..b2afeb4a60e3 100644 --- a/drivers/watchdog/keembay_wdt.c +++ b/drivers/watchdog/keembay_wdt.c @@ -109,6 +109,7 @@ static int keembay_wdt_set_timeout(struct watchdog_device *wdog, u32 t) { wdog->timeout = t; keembay_wdt_set_timeout_reg(wdog); + keembay_wdt_set_pretimeout_reg(wdog); return 0; } -- 2.30.2