Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5261475pxv; Wed, 21 Jul 2021 00:54:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/PTEcLTQjiSQ1md0z///Tpf2wgGqdvRl333CL6QS58FdkGovlXxdDLmm0SfDXHxUUDeGw X-Received: by 2002:a05:6638:25c7:: with SMTP id u7mr29750895jat.26.1626854058985; Wed, 21 Jul 2021 00:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626854058; cv=none; d=google.com; s=arc-20160816; b=mqZJjdVL1H3CH9X5N4yz8jGwgNhQ08cbSiqHzCUwI9bo458ErpQKE0EI0lW4mrN/Xt NDg5DNStnYgpThJIbPv2a8Cz66GDncto0koqu7JWMEpRFvdpcVeFEqGd2yJ2soVuYGA7 FsekB70o2pYXcYrRy5lqA05t+pyBdtj3pf1BaUlhrUPHHGqvyk+464g4OAO1Fg1fQwpB BuzKZ3st/XMg+p2hf7WybZlHoeJApGol6gM1/D2OXbZdWXg3DijvQyZciZWryFQJbX9C GZJ1aWJ2KSBZI197W7LQjQyg/1elEdg1kAf/FEl6WPJ66+WsUNjXY2kSvzV/R0dtFIOU Ke6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fPh5HDaC3NW63sKOep74w/15dkj23GMomTPo2I4GDhw=; b=Bp3yxb6SiDvBOk6yEg+c5shAwz6gunxUXBOPdDigGCjQ7Ie7H9HN0gj8xMwaG7tsqo ugNm9oLf0L1C3dCZLofWOy0nZa4horRqix6mwBs4sE+GUpSFagDigDTgTdH1z4ZjBKx8 x85IY+HuQRiAL6Ynp+F43NHyWFB425jrV2saK7bB1U4cDOu/Pu7c8oRcHIZhmajrxyCw LTh8sTkJ2PxtTjJ7GYEqtJFnd/HKpqZ2b/q6eBXZzDLWYiPvelfz9OXCKs6/DsSqmw3T 5bAMjcrDQi60HyWrrhbKgF+M8I7BCnV9IDrYDr7lMl1nXRVHUFPNPEcBJ4fOnOAeVbMQ QSJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GeesXmQG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si3836648jan.7.2021.07.21.00.54.07; Wed, 21 Jul 2021 00:54:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GeesXmQG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235457AbhGUHMn (ORCPT + 99 others); Wed, 21 Jul 2021 03:12:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235749AbhGUHKr (ORCPT ); Wed, 21 Jul 2021 03:10:47 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2286AC061768 for ; Wed, 21 Jul 2021 00:51:14 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id l2so1310903qtp.11 for ; Wed, 21 Jul 2021 00:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fPh5HDaC3NW63sKOep74w/15dkj23GMomTPo2I4GDhw=; b=GeesXmQG+7CVMQ6QTsIDB+/F52PWxosGClYlRK86JCSRPaEo9A097xHaGPOsY098Gy xrWTrFFlK11otZlGua6ezmKIjD3Hezx1tprVfiZ/iG5dP6sXc6rZXW36KaeLfqAsDpdz Est8nIU8s8G2ugeReNJgIqUZptBTIdytVztczNJenUOGfAH9MD7xY5VugeKAbbgB03dt dKCNWlvTWBXssbyrIiEVaAzb4cLFsnWzTTKjKRi+IGvcoY+CHa5amWDwr5AZ8itI3E8w D1i+AQHH2HU7DrlShG/wUfyPHh5iNyAGsbNTnnfjmT0cEvdHmft2lvwZnm7DjfnAsygc T2Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fPh5HDaC3NW63sKOep74w/15dkj23GMomTPo2I4GDhw=; b=j2TRjUxqipYrlhUQN94Nu8VdCcjcSSy5f3ituZ61H/cziLmcDboGKF8CiroT0bOdaH bNzZ8F9+jEIcc9krs5c7Ro9dCjWUJeR/ec1Sd+QucWvFpEwIxVQgYXHRQoMlUpR0fq8r DQXKy9b7D1lDXQWEqeJ3by/uFYVB+zhmGoYTbum7ihjijd7Tavmp5biJghbXC81ffCg7 eMsDu4/+phzODM1y6LqRqfhNvEOsS8TiJoeGF64yVIfqxAI03CYXmXs8BdpyfRGxisKD 862WrAfaVqs26jelCTSCCpOUT7y8xsduKUkPIXIoH82bkf1Ta5Vyblmw+RML4O8kzuPY FApg== X-Gm-Message-State: AOAM530a4HvP1iMYtvkMitEZQBi61fLxQ0l0v5a9IFm2+O20BRKjqB7U J70fQmiWjCu1K305Pqm/7h3p+ixpyj375emCtYvlbg== X-Received: by 2002:ac8:5645:: with SMTP id 5mr30183956qtt.200.1626853873268; Wed, 21 Jul 2021 00:51:13 -0700 (PDT) MIME-Version: 1.0 References: <20210618195033.3209598-1-grzegorz.jaszczyk@linaro.org> In-Reply-To: <20210618195033.3209598-1-grzegorz.jaszczyk@linaro.org> From: Grzegorz Jaszczyk Date: Wed, 21 Jul 2021 09:51:02 +0200 Message-ID: Subject: Re: [PATCH v2 0/2] introduce watchdog_dev_suspend/resume To: wim@linux-watchdog.org, Guenter Roeck , shawnguo@kernel.org Cc: linux-watchdog@vger.kernel.org, linux-arm-kernel , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Jun 2021 at 21:50, Grzegorz Jaszczyk wrote: > > Hi All, > > The following is a v2 version of the series [1] that fixes system hang which > occurs when the ping worker fires after wdog suspend and before wdog resume. > This happens because the ping worker can issue low-level ping while the wdog clk > was disabled by the suspend routine (accessing hw wdog registers while they are > not fed by the clk). > > To overcome this issue two patches were introduced. Patch #1 introduces pm > notifier in the watchdog core which will call watchdog_dev_suspend/resume and > actually cancel ping worker during suspend and restore it back, if needed, > during resume. > > Patch #2 introduces relevant changes to imx2_wdt driver and notifies wdog core > to stop ping worker on suspend. > > [1] https://lkml.org/lkml/2021/6/15/542 > > Best regards, > Grzegorz > > Grzegorz Jaszczyk (2): > watchdog: introduce watchdog_dev_suspend/resume > watchdog: imx2_wdg: notify wdog core to stop ping worker on suspend > > drivers/watchdog/imx2_wdt.c | 1 + > drivers/watchdog/watchdog_core.c | 37 +++++++++++++++++++++++++ > drivers/watchdog/watchdog_dev.c | 47 ++++++++++++++++++++++++++++++++ > include/linux/watchdog.h | 10 +++++++ > 4 files changed, 95 insertions(+) > > -- > 2.29.0 > Hi, Gentle reminder about this patch-set. Both patches were reviewed by Guenter Roeck and are on the list for some time, I would be happy if we could get them applied. Thank you in advance, Grzegorz