From patchwork Tue Apr 26 07:10:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Xinpeng X-Patchwork-Id: 567453 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 2FCF1C433F5 for ; Tue, 26 Apr 2022 07:11:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343798AbiDZHOY (ORCPT ); Tue, 26 Apr 2022 03:14:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343701AbiDZHN5 (ORCPT ); Tue, 26 Apr 2022 03:13:57 -0400 Received: from chinatelecom.cn (prt-mail.chinatelecom.cn [42.123.76.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 771B01403F; Tue, 26 Apr 2022 00:10:50 -0700 (PDT) HMM_SOURCE_IP: 172.18.0.188:50678.1670155976 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-202.80.192.39 (unknown [172.18.0.188]) by chinatelecom.cn (HERMES) with SMTP id 466162800A9; Tue, 26 Apr 2022 15:10:44 +0800 (CST) X-189-SAVE-TO-SEND: +liuxp11@chinatelecom.cn Received: from ([172.18.0.188]) by app0023 with ESMTP id cad0a28d3faa422aabfbb6caf3f45541 for wim@linux-watchdog.org; Tue, 26 Apr 2022 15:10:49 CST X-Transaction-ID: cad0a28d3faa422aabfbb6caf3f45541 X-Real-From: liuxp11@chinatelecom.cn X-Receive-IP: 172.18.0.188 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 v4 0/4] Some impovements about watchdog Date: Tue, 26 Apr 2022 15:10:25 +0800 Message-Id: <1650957029-910-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". Thanks Guenter Roeck and Tzung-Bi Shih's suggestions. 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(-)