Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp661848pxb; Tue, 5 Apr 2022 17:46:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7AHVDwnqtlq0rWD4AFI4A8G8UGiWxgMhyiAOZGOYnf+/5XDZ1cbG0mOIUVBoYXVDz1HwG X-Received: by 2002:a17:906:dc8d:b0:6e0:5cdd:cabf with SMTP id cs13-20020a170906dc8d00b006e05cddcabfmr385540ejc.38.1649205883470; Tue, 05 Apr 2022 17:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649205883; cv=none; d=google.com; s=arc-20160816; b=dvyheTcN6uSFvBOu0hmk0NWt6s9NDDn4rDh7eBoaOQ2qtQSe6ZrUDqUw9aIDr041SK cn/QgxTvBg+sJMYFbYRZlWB9dBKuyNZ7pWI9DiCRs3iAuagQKrmIdTb/0WomfX18dABA QqfmBJ4oKRVMmYzAvN4w9ShlE352/Tb5/F+7I8E09PBYbCrlw1kHOs8w3su0cSYcuSD1 eJe1a5Tk7utyvA9/Ss0wnnxVerA7EAVW/RSCgJzVSxBmK2IBIC6sVbgg9Zg6RUuASHVt B/PiLepO/y3L7tWz+9ekXJ1Q1M4LzPHoSgGzSEGFgMh9RyksnMrFdLJ5sczracUD2nk+ W+Zg== 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=+iRMejeq4Dpfl76q6XSz7s8bxoSCFYe8+E/5VYVzUqQ=; b=p52IHwW1UQ1Qh7v5g1niZbauWRJJE2hBG5uwJf8zv3fRCJtv7AdeqAp6GA1P/c5GiO cvIUX96AUKqVkaTwHgLptUedvn/toIHtdZxQjGjGhjAit8TnoLw0XJVtKHbsN2kTvTqG QwcF9CroLPOs6rrHNxMxvXZ/HU/yVfGY5SAolbx3FkQ1cHtpiU2/VcYnFkRI/tr1s0a8 JxN54PYkLEoqgxkWB7uLoNjJx1vI9Yojrh1b3aaGDbKV0m8MskyNAHQU/l93MfX4z50C csUkYcAe+6LLr4fwnOhctzvvYMaX9d0kG+lpBSoHMt1Zb2J/mH6hT96L6xuDylh1iTSB t4jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TnCtzD69; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a50a6ce000000b00418c2b5bf41si9595918edc.547.2022.04.05.17.44.17; Tue, 05 Apr 2022 17:44:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TnCtzD69; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1378379AbiDELdx (ORCPT + 99 others); Tue, 5 Apr 2022 07:33:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244567AbiDEIw0 (ORCPT ); Tue, 5 Apr 2022 04:52:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FE2ED7615; Tue, 5 Apr 2022 01:41:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0F37F614FD; Tue, 5 Apr 2022 08:41:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 201DEC385A0; Tue, 5 Apr 2022 08:41:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148080; bh=SjknEhECGb1fUja6ZVAmAJQKcOM/RZ1nOx6+Lr4wAFE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TnCtzD69knu5NS1w0sI1+YQo0zpRSi8gjYjUDgmVen0SW+10+grQ6tg4CKBxPonik PxyNsH+sa37+slSO5z/9QfITZsNNOKJhNMcyR/NqNAf7Hl6vbl1HLBbiResekk7Eub FwI3yJg5vKnZITup894UxQzReu5+kgAh/3RIwzTA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guenter Roeck , Armin Wolf , Hans de Goede , Sasha Levin Subject: [PATCH 5.16 0228/1017] hwmon: (sch56xx-common) Replace WDOG_ACTIVE with WDOG_HW_RUNNING Date: Tue, 5 Apr 2022 09:19:01 +0200 Message-Id: <20220405070401.022835973@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Armin Wolf [ Upstream commit 647d6f09bea7dacf4cdb6d4ea7e3051883955297 ] If the watchdog was already enabled by the BIOS after booting, the watchdog infrastructure needs to regularly send keepalives to prevent a unexpected reset. WDOG_ACTIVE only serves as an status indicator for userspace, we want to use WDOG_HW_RUNNING instead. Since my Fujitsu Esprimo P720 does not support the watchdog, this change is compile-tested only. Suggested-by: Guenter Roeck Fixes: fb551405c0f8 (watchdog: sch56xx: Use watchdog core) Signed-off-by: Armin Wolf Link: https://lore.kernel.org/r/20220131211935.3656-5-W_Armin@gmx.de Reviewed-by: Hans de Goede Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- drivers/hwmon/sch56xx-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/sch56xx-common.c b/drivers/hwmon/sch56xx-common.c index 40cdadad35e5..f85eede6d766 100644 --- a/drivers/hwmon/sch56xx-common.c +++ b/drivers/hwmon/sch56xx-common.c @@ -422,7 +422,7 @@ void sch56xx_watchdog_register(struct device *parent, u16 addr, u32 revision, data->wddev.max_timeout = 255 * 60; watchdog_set_nowayout(&data->wddev, nowayout); if (output_enable & SCH56XX_WDOG_OUTPUT_ENABLE) - set_bit(WDOG_ACTIVE, &data->wddev.status); + set_bit(WDOG_HW_RUNNING, &data->wddev.status); /* Since the watchdog uses a downcounter there is no register to read the BIOS set timeout from (if any was set at all) -> -- 2.34.1