From patchwork Tue Apr 26 07:03:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Xinpeng X-Patchwork-Id: 566448 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5680CC433EF for ; Tue, 26 Apr 2022 07:03:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343607AbiDZHGf (ORCPT ); Tue, 26 Apr 2022 03:06:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbiDZHGf (ORCPT ); Tue, 26 Apr 2022 03:06:35 -0400 Received: from chinatelecom.cn (prt-mail.chinatelecom.cn [42.123.76.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6236E6D4C0; Tue, 26 Apr 2022 00:03:28 -0700 (PDT) HMM_SOURCE_IP: 172.18.0.48:51254.2065698957 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-202.80.192.38 (unknown [172.18.0.48]) by chinatelecom.cn (HERMES) with SMTP id EB35E2800DE; Tue, 26 Apr 2022 15:03:20 +0800 (CST) X-189-SAVE-TO-SEND: +liuxp11@chinatelecom.cn Received: from ([172.18.0.48]) by app0024 with ESMTP id 9e3d1b3071354b8886c605386b93e40a for wim@linux-watchdog.org; Tue, 26 Apr 2022 15:03:22 CST X-Transaction-ID: 9e3d1b3071354b8886c605386b93e40a X-Real-From: liuxp11@chinatelecom.cn X-Receive-IP: 172.18.0.48 X-MEDUSA-Status: 0 Sender: liuxp11@chinatelecom.cn From: Liu Xinpeng To: wim@linux-watchdog.org, linux@roeck-us.net, tzungbi@kernel.org Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Liu Xinpeng Subject: [PATCH v3 0/4] Some impovements about watchdog Date: Tue, 26 Apr 2022 15:03:04 +0800 Message-Id: <1650956588-795-1-git-send-email-liuxp11@chinatelecom.cn> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Changelog: v1->v2 Update the commit messages v2->v3 - Add the context about why using watchdog_timeout_invalid. - Using SET_NOIRQ_SYSTEM_SLEEP_PM_OPS reduces redundant code for iTCO watchdog. v3->v4 - For patch 1, update commit message, rename WDAT_TIMEOUT_MIN to WDAT_MIN_TIMEOUT, keeps consistent with WDAT_DEFAULT_TIMEOUT. - For patch 4, iTCO_wdt_suspend_noirq and iTCO_wdt_resume_noirq are possible unused, so keep "ifdef CONFIG_PM_SLEEP ... #endif". Liu Xinpeng (4): watchdog: wdat_wdg: Using the existed function to check parameter timeout watchdog: wdat_wdg: Stop watchdog when rebooting the system watchdog: wdat_wdg: Stop watchdog when uninstalling module watchdog: iTCO_wdg: Make code more clearly with macro definition drivers/watchdog/iTCO_wdt.c | 12 +++--------- drivers/watchdog/wdat_wdt.c | 7 +++++-- 2 files changed, 8 insertions(+), 11 deletions(-)