Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2848646pxb; Mon, 18 Apr 2022 09:29:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVp/yzJe+8eRdpsLeAyjk8CRllhAvobVwl3DszCgKRKsMPEqd8u5pOwX86JoB9/jtEU5nu X-Received: by 2002:a17:903:31c8:b0:158:d060:eab7 with SMTP id v8-20020a17090331c800b00158d060eab7mr11590300ple.5.1650299351132; Mon, 18 Apr 2022 09:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650299351; cv=none; d=google.com; s=arc-20160816; b=0yvcbaC5KY+0p3pKIkMw4jlKOdfS9GIjDG7pB3wEiW5E44uPZxiOp3EZWwdfs0tzbx IzvkBQImiLAnIjiC3hGNU4GTwDmO3QJzv7undPOqSC29Ex+hLwChz2zdbOMP/JV3vyxY JC+yPp5qBw/Cc1r8mt6IY8ZHriqRGgudZg+fMH/mzrnE0Bu1oeqeIXvPYNItijQQZm1O 7miRRbgBeFjYCR+vSDvzpR7VrgMF90tCvEmTTrSDixERgW1ag5lqygUkeBXrCTeQZPYB 7hrkCwlPfW6JSHoWtjiBYMrVx7D0Ev+LDZJXYOhpjSHZPIp9r9gYfUjdGMtVX/A0SlrO 9SpQ== 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=hl7a5OHOheZZUDK5t8B+OGQHJJdRdNZHYfrRk+MHsz8=; b=MEUR9YwyGBpyA5/tiGy2348NX3Ngckpuz9sPlyjb+HtKSAKgSfHkHjito+r5IJKj1f jOl8sFeQqsEWCrxUioXBWjHfrQL778/JDrNLoGNewvGH+biEobWuzEySmFWi5dfO1Jw1 LP8yeaD6cZlaItrkmLNK8jrlHbuFxbIL/VLzggrecDblK3yyaCkJbYYbgrwWKn8WuduY 4Ma2bAAorjdIO2v2QjI9XTDR5ArRsdjdvXBjTKlAGT6bk7sigYSN25M3cWJpCEn3gz/g rzClFlMp/NGfzp1upJgH5Dd/aFJ8nOfdiB+478ZWyJDDtkXet3pFkygOVPPynnbuuzHl T6MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GWeg6El1; 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 g21-20020a056a000b9500b004fa7cbb60ccsi9299059pfj.284.2022.04.18.09.28.55; Mon, 18 Apr 2022 09:29:11 -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=GWeg6El1; 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 S243726AbiDRNiW (ORCPT + 99 others); Mon, 18 Apr 2022 09:38:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243861AbiDRNKa (ORCPT ); Mon, 18 Apr 2022 09:10:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A2C6387AF; Mon, 18 Apr 2022 05:50:00 -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 ams.source.kernel.org (Postfix) with ESMTPS id 531A8B80E44; Mon, 18 Apr 2022 12:49:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B40C0C385A1; Mon, 18 Apr 2022 12:49:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286198; bh=KTN0X4FW5gLMAt9HwX2qa26OsxYjrrPzmMtT5dx7FlQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GWeg6El1MwT5lDg7jsoz2BHl1TqDovwdtmC7+jHx+oNCMrsCw2EqAbI3vnwajvJjr mZDRsH1E9ONiK1JqqqKk3Qx41faqgePdqBS0IYgkLni3a9OCnO5fIAmUEG0RfZVpu2 IOTtpfXp87X6TqNK7BF1t7utKuK1iGyX+PbxPnPo= 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 4.14 059/284] hwmon: (sch56xx-common) Replace WDOG_ACTIVE with WDOG_HW_RUNNING Date: Mon, 18 Apr 2022 14:10:40 +0200 Message-Id: <20220418121212.371027809@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@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.7 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 bda3d5285586..e1c4e6937a64 100644 --- a/drivers/hwmon/sch56xx-common.c +++ b/drivers/hwmon/sch56xx-common.c @@ -437,7 +437,7 @@ struct sch56xx_watchdog_data *sch56xx_watchdog_register(struct device *parent, if (nowayout) set_bit(WDOG_NO_WAY_OUT, &data->wddev.status); 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