Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3794493imm; Mon, 8 Oct 2018 09:36:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV63vXkASt3yf5cij18zComUhyZthx/+iwAI6AttA01SXniHvAsuO84TzXW9jkF7hl2gsgAUX X-Received: by 2002:a62:de05:: with SMTP id h5-v6mr25935395pfg.258.1539016563345; Mon, 08 Oct 2018 09:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539016563; cv=none; d=google.com; s=arc-20160816; b=q81fm4Je2hKSsMfXzqgkKCP8R2G/oHOb2Pr+lD3nyQsBnp2UAH1ExZYx+CSUYq8Gga g3r8V02YwaX6kpFkmlPr9hzXtOFEfe24mHaZZZqXbry10G3DDIbvLpl6YCFb8NjWppfJ o0J/QYSEFxiMJy5/xCVx6EGTKBcAEfnORAWyqsRBIZRI+6J+DwrrNlJ9FZi53qbsKhsy u8CYVbs1aj2xv9RcvUtUjOqYQsE2BEzAev/Fa5y27PgHdbosp2jYA/FcFcB94OjXBloz sxLmg+kl5qgK+ADI2aoGQtFQ5UsXSqoZ2tMwnYlSDRggeuMW/5kbZfJALnJ37i4szpfy de2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=4vXEEhUhuKQKCy1VNrDRy3TVTiGmQPqS1/aNM4oOffE=; b=lfT+2dMk6tFVITJsEOox7uodAVGhd5JfRxu9+7sL8B/OlZstO2lIEQsMR0DFE0Z2Ke 6KMODRu3K0B09sNRyrJSHjXgj85qXgz08NuZyHYBNa9xcfCDkKWTJ41eSUibZV6R9Zfr O+FO3zC8WwqYFwgcvFrTroN7ENv3Ynf8mJs+Cw84M7FlcBWFRLaxHr+/Mlw4CJjo0gnA iuFkJNmz5jrcQYS0VhQ6i81TNMfkJoJ3TJfd4MNnKo/sFmYrJYXeQ7AeWHK+og/QCvfG byFAk00kVROxqaK1p7L/PtCMgkgM0jP5gFWa32gnWDjrCTq0k/A2NB/hvHv7T0idKRLd UBgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=s5iR9zNW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l185-v6si16949399pgl.270.2018.10.08.09.35.48; Mon, 08 Oct 2018 09:36:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=s5iR9zNW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726747AbeJHXsP (ORCPT + 99 others); Mon, 8 Oct 2018 19:48:15 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:50922 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbeJHXsP (ORCPT ); Mon, 8 Oct 2018 19:48:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Subject:Sender:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4vXEEhUhuKQKCy1VNrDRy3TVTiGmQPqS1/aNM4oOffE=; b=s5iR9zNWOpnAwz1/pxH2KwqYw SE1e4/zcITiOfl+V9ySAx0ebIRZBZZlxUokl9Fz8iuGoHjavWSz7j+rtQuYs0aPnPXvp+v9U3W90s Zb7cEcf70ZDj3KEArTp5WfNpzFPY/XU41UwGoBuV475qWSi+uILtTPUx8HAKY5zr7VaSty32MIYEi BrZUKZ9wAN1X1cR6XR4CT5CUaNQ/5gup8bKO+FraIpH/m+ytfs6iV87O9U6ViNEoW6u4M56XHYlho LGcjvGraluBkhBDaXAyAYHqb7oT3lR5RlLJ9Cmuo8ePKBhadzeOIe5pSnqOJiYs58qhLwSLqdF3d3 DgM6KMWlw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9YVL-0001PB-C9; Mon, 08 Oct 2018 16:35:35 +0000 Subject: Re: [PATCH v3 8/8] watchdog: stpmic1: add stpmic1 watchdog driver To: Pascal PAILLET-LME , "dmitry.torokhov@gmail.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "lee.jones@linaro.org" , "lgirdwood@gmail.com" , "broonie@kernel.org" , "wim@linux-watchdog.org" , "linux@roeck-us.net" , "linux-input@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-watchdog@vger.kernel.org" , "benjamin.gaignard@linaro.org" , "eballetbo@gmail.com" References: <1539016176-4072-1-git-send-email-p.paillet@st.com> <1539016176-4072-9-git-send-email-p.paillet@st.com> From: Randy Dunlap Message-ID: <5257d6f9-7481-de33-64a5-0e1188304716@infradead.org> Date: Mon, 8 Oct 2018 09:35:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <1539016176-4072-9-git-send-email-p.paillet@st.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/8/18 9:29 AM, Pascal PAILLET-LME wrote: > From: pascal paillet > > The stpmic1 PMIC embeds a watchdog which is disabled by default. As soon > as the watchdog is started, it must be refreshed periodically otherwise > the PMIC goes off. > > Signed-off-by: pascal paillet > --- > changes in v3: > * Rename struct stpmic1_dev by struct stpmic1. > * Add nowayout module param. > * Fix set timeout. > * Call watchdog_init_timeout so that the timeout can be set in the devicetree. > * Add email address in MODULE_AUTHOR. > > drivers/watchdog/Kconfig | 12 ++++ > drivers/watchdog/Makefile | 1 + > drivers/watchdog/stpmic1_wdt.c | 138 +++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 151 insertions(+) > create mode 100644 drivers/watchdog/stpmic1_wdt.c Hi, > diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > index 5ea8909..985781e 100644 > --- a/drivers/watchdog/Kconfig > +++ b/drivers/watchdog/Kconfig > @@ -806,6 +806,18 @@ config STM32_WATCHDOG > To compile this driver as a module, choose M here: the > module will be called stm32_iwdg. > > +config STPMIC1_WATCHDOG > + tristate "STPMIC1 PMIC watchdog support" > + depends on MFD_STPMIC1 > + select WATCHDOG_CORE > + help > + Say Y here to include watchdog support embedded into STPMIC1 PMIC. > + If the watchdog timer expires, stpmic1 shut-down all its power If the watchdog timer expires, stpmic1 shuts down all its power or If the watchdog timer expires, stpmic1 will shut down all its power > + supplies. > + > + To compile this driver as a module, choose M here: the > + module will be called spmic1_wdt. > + > config UNIPHIER_WATCHDOG > tristate "UniPhier watchdog support" > depends on ARCH_UNIPHIER || COMPILE_TEST cheers. -- ~Randy