Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp598853pxb; Tue, 5 Apr 2022 15:28:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3wWEGFq4u8WQkkQ4lSzCgUy2WwItVPJTy48vp3iXmmQ9sKsVvSs9i+9lkh2ZswCxZHy5c X-Received: by 2002:a63:4919:0:b0:382:6f3d:e48 with SMTP id w25-20020a634919000000b003826f3d0e48mr4591878pga.613.1649197690231; Tue, 05 Apr 2022 15:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649197690; cv=none; d=google.com; s=arc-20160816; b=gybFMW9FU5I4KkIDZOq9hSdi5kLCO2j86MRuI7wEYoJAoTVCSX+JXuYWmAZheHY01U 3lK8F7BoTgCAdfYHGOtsQ6B7AxrPH5+KATv+haVEe0/+xc7sml4kme7XjBf3ukRHK1Iw xPlaABi5N5Faa0FcpVpEvrht2G89Q7vtmmlCF+qt4MIt2SjbkqIsFnHLeBRj9Vt4L8Bg X24e3BfRaO+4mnT88kd8KlrQSg6CQ4qeL51nkcineatY0+UWToIFo5n6/q/B2wj8HRLO aK2Xh8bQb2sRVSe9NFwnYiv2qt8rDGm7wfeU0hB+g/yldTDRnX95uawscOnlOrXSt+An 8pcQ== 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=d6VhQwxlyhCMSD35EzT9fYHF+NCCvrIEv14fPlb8So6LH7L6oQLq2NwHKuIhvyPLOi i32z/Fm2XzlkRTUTCMi9aAAyqk94ABx2tiqMxBna3++e5GGbQ3SfV4rHT2qOSgYiBMBI mH/CwXi66SbIBjCQbRMD4BJuY5gDT1k9RPjeDjIBEf7ehYE3YDr4ffzCLPrwxsUYrA4V Q6nONjeflb3BMC8dfYqVB6owruANHFNo9/g1iXr/s424eWfa/MJyHreGBkWe6vdBZlxz r/rU/9M2v/o7GVoRQ5MR5czrY/eo4g2bg0Hmc8lm7XpgxaDWa9J2H+A527LYVG1v0pfs 3VRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TrwUgQCo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t5-20020a6549c5000000b003816043f137si15300683pgs.812.2022.04.05.15.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 15:28:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TrwUgQCo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4CDE01FAA37; Tue, 5 Apr 2022 15:10:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346581AbiDEPLX (ORCPT + 99 others); Tue, 5 Apr 2022 11:11:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345904AbiDEJoK (ORCPT ); Tue, 5 Apr 2022 05:44:10 -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 4660EC6276; Tue, 5 Apr 2022 02:29:45 -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 4BC536165E; Tue, 5 Apr 2022 09:29:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D66DC385A0; Tue, 5 Apr 2022 09:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150984; bh=SjknEhECGb1fUja6ZVAmAJQKcOM/RZ1nOx6+Lr4wAFE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TrwUgQCoe63cbXcA2hSSZEXjMZinupxstMFfT6PAUOFz9RLswa8pwe0ba5hfpTilr mXC7OT0shk6IO9lwBtwaqYlw5DVES9UfhnBygkONsNACcKbGdF2BrNLgp/5DDbm0Vk N9lb4GILEQd1AKxD4pxK4+qehRTltB6v64IsWVT8= 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.15 215/913] hwmon: (sch56xx-common) Replace WDOG_ACTIVE with WDOG_HW_RUNNING Date: Tue, 5 Apr 2022 09:21:17 +0200 Message-Id: <20220405070346.302361523@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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