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 8306CC433F5 for ; Thu, 13 Jan 2022 18:56:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237758AbiAMS4d convert rfc822-to-8bit (ORCPT ); Thu, 13 Jan 2022 13:56:33 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:47239 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237683AbiAMS4a (ORCPT ); Thu, 13 Jan 2022 13:56:30 -0500 Received: from [192.168.1.107] ([37.4.249.169]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M91Tq-1nE78T3Jag-006AIx; Thu, 13 Jan 2022 19:55:59 +0100 Subject: Re: [PATCH 1/2] watchdog: imx2_wdg: Alow ping on suspend To: Alistair Francis , linux-kernel@vger.kernel.org, linux@roeck-us.net, shawnguo@kernel.org, wim@linux-watchdog.org, linux-watchdog@vger.kernel.org, s.hauer@pengutronix.de, linux-arm-kernel@lists.infradead.org Cc: linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, devicetree@vger.kernel.org, robh+dt@kernel.org References: <20220109114120.386013-1-alistair@alistair23.me> <20220109114120.386013-2-alistair@alistair23.me> From: Stefan Wahren Autocrypt: addr=stefan.wahren@i2se.com; keydata= LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tClZlcnNpb246IEdudVBHIHYy CgptUUlOQkZ0NmdCTUJFQUN1Yi9wQmV2SHhidkplZnlaRzMySklObW4yYnNFUFgyNVY2ZmVq bXlZd21DR0tqRnRMCi9Eb1VNRVZIRHhDSjQ3Qk1YbzM0NGZIVjFDM0FudWRnTjFCZWhMb0J0 TEh4bW5lQ3pnSDNLY1B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V6QUhlTERTaFpQMkNX ZG5DNHZnbDM3dApocHg4aDU1WWhKbjZIU3VVelBnaGFLdFZCMmsrajdaZXlaK1NGeHA3SXVi SEN3TEhsUWhUNzVSd1EzaUF4S242CjBxajUxY1lUbnF4ZFpYVzZmSDNQa3VNellVNUdwcVIv MU9sNWMvd2ZJNmc2QW04eUtXLzBFVUx0K0tuNExGc1MKbTdZM201SDV2MTJVNkpCWXZWK3Ix M2paaW9zNEVFREU5M0Q1c05IMk1JeVJ6Q0RxMXpkZHQ0WHV5S0ZqUEtXMQo5aWJaRGZGVjdL dUNzdnVMMjNzQmMxc0NNb3ArRTFtVC9ReE9JQTZvRFQxTVFzdHdPVnVReURDdi9PdktTZ2Z6 CjhGWEdMNkFQY2xqQ3FqOEFKaHhReXN4ZG9pUVA4bS92dStialdHR3Z4dzVzMWxncGlSRFRS VVBnY0pKTmFHWTIKVklEclpRaTROU2lOUTBOSWkrZGp1NGZOTW1DcFFxZzh0YkMzY0FhNnl3 bTZvUUIxU0JobURYMmUxMWdSbGx1SQpPblRHUEUwSFRvM2w3MmxoYmc9PQo9cVpNVgotLS0t LUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCg== Message-ID: <4c5df296-b930-f65f-1106-c00889f1cdc1@i2se.com> Date: Thu, 13 Jan 2022 19:55:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20220109114120.386013-2-alistair@alistair23.me> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Content-Language: en-US X-Provags-ID: V03:K1:UPIzwSEq6W60y92d9SD817JQD4SXRL+kTRj0RI/YsT5cPQR+xJV ejyK/iX48jw2fyBU6su1U2ej511YmjvFGYoKCGEOB3PiqUR0KS3cQQIyQ5ssEpP9aOfbA10 18+hnpl82g1POsRNZJKJt0kR+ftmtf49X4tfTm0WNP1trUvKPVWaZCoAAyndGnjBeh5SBGR IvU0OhS+ixmGTBhUD3L+g== X-UI-Out-Filterresults: notjunk:1;V03:K0:CftxcI2hVw0=:ZPbE0zNYCXQCF9gnJgDfH1 DWttjVuND+NjeYyM9tDih1mb1X/BtE8ab2GWJuhp4d78GyA54DC0Xl2ACvz55Plu48GAJ3T0n YFaJtCaq7SWYWrnxpV0pf5xyu67XPAA8Yg+109bkZ7HBCjKSWkoijxQZ8BJIEKaSCmOfrR900 H082saxYooEAbfSvku+W8Mmr1pcy/PIEngtL50Adtq/D0JbOr2lrGPMFuHAUt6LudeECj/BIJ 0qfvpoQ84Rdehjr9Efad7JIItR5AIA0Qehkb2ghx6G3eqc6sdpPOj/pSXdpMv0XBmuScmiAm1 JvFNMLbJ4YozljGo0hfnGSbVV+rV4MyrC7iOjBm5JDANmxp2/Opwe4MYoTtiPq4NgMTvFiqdG W+GgDVe0YE0QpNRbuUK5oBD8zbkBYu+wukEYG2MdA05LK/eoRaWlBv0I99ozOG7d5914HN67M 56RoNz/rW0ZhfokkgE93W+csql2knrrpWcI/VFYU834XLErt0/TwA74PRGN1e27KvDfe/rW5l fWAmclXO/EFmogkNypqoya5WYG6j+AHBE54OCQbKmTgsvnhfGzxYLLSPmR/9M1bnGHZv1zaPy +5tcmdtK/1huD2ODDh+wmcdfl7nWx3tg0Ycrm9MwfBh0aLZdteUUXSByZp2mFh5w6im3YVEOz 8982MsY+MuWkNh3YaUWNzI9jEA/uOK+amp2jGUPkhUUEmr1cNFT2OEohTlrvSSIPlETmxXhAp ZGZgvNIm0dcYpY/N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am 09.01.22 um 12:41 schrieb Alistair Francis: > The i.MX watchdog cannot be disabled by softwrae once it has been s/softwrae/software/ > enabled. This means that it can't be stopped before suspend. > > For systems that enter low power mode this is fine, as the watchdog will > be automatically stopped by hardwrae in low power mode. Not all i.MX s/hardwrae/hardware/ > platforms support low power mode in the mainline kernel. For example the > i.MX7D does not enter low power mode and so will be rebooted 2 minutes > after entering freeze or mem sleep states. > > This patch introduces a device tree property "fsl,ping-during-suspend" > that can be used to enable ping on suspend support for these systems. Introducing vendor specific properties for Linux behavior should be avoided. The DT should describe just the hardware. In case i.mx7d is affected, how about enabling this workaround for compatible fsl,imx7d-wdt? This has the advantage that in case low power mode will be implemented , we don't have to care about DTB files. Best regards > > Signed-off-by: Alistair Francis > --- > .../bindings/watchdog/fsl-imx-wdt.yaml | 7 ++++++ > drivers/watchdog/imx2_wdt.c | 22 +++++++++++++------ > 2 files changed, 22 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml b/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml > index fb7695515be1..b8660a3c456c 100644 > --- a/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml > +++ b/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml > @@ -55,6 +55,13 @@ properties: > If present, the watchdog device is configured to assert its > external reset (WDOG_B) instead of issuing a software reset. > > + fsl,ping-during-suspend: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + If present, the kernel will ping the watchdog during suspend. > + This should be used on platforms that don't enter low power mode > + during suspend. > + > required: > - compatible > - interrupts > diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c > index 51bfb796898b..9a5fdb3173a8 100644 > --- a/drivers/watchdog/imx2_wdt.c > +++ b/drivers/watchdog/imx2_wdt.c > @@ -66,6 +66,7 @@ struct imx2_wdt_device { > struct watchdog_device wdog; > bool ext_reset; > bool clk_is_on; > + bool no_ping; > }; > > static bool nowayout = WATCHDOG_NOWAYOUT; > @@ -312,12 +313,14 @@ static int __init imx2_wdt_probe(struct platform_device *pdev) > > wdev->ext_reset = of_property_read_bool(dev->of_node, > "fsl,ext-reset-output"); > + wdev->no_ping = !of_property_read_bool(dev->of_node, "fsl,ping-during-suspend"); > platform_set_drvdata(pdev, wdog); > watchdog_set_drvdata(wdog, wdev); > watchdog_set_nowayout(wdog, nowayout); > watchdog_set_restart_priority(wdog, 128); > watchdog_init_timeout(wdog, timeout, dev); > - watchdog_stop_ping_on_suspend(wdog); > + if (wdev->no_ping) > + watchdog_stop_ping_on_suspend(wdog); > > if (imx2_wdt_is_running(wdev)) { > imx2_wdt_set_timeout(wdog, wdog->timeout); > @@ -366,9 +369,11 @@ static int __maybe_unused imx2_wdt_suspend(struct device *dev) > imx2_wdt_ping(wdog); > } > > - clk_disable_unprepare(wdev->clk); > + if (wdev->no_ping) { > + clk_disable_unprepare(wdev->clk); > > - wdev->clk_is_on = false; > + wdev->clk_is_on = false; > + } > > return 0; > } > @@ -380,11 +385,14 @@ static int __maybe_unused imx2_wdt_resume(struct device *dev) > struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); > int ret; > > - ret = clk_prepare_enable(wdev->clk); > - if (ret) > - return ret; > + if (wdev->no_ping) { > + ret = clk_prepare_enable(wdev->clk); > > - wdev->clk_is_on = true; > + if (ret) > + return ret; > + > + wdev->clk_is_on = true; > + } > > if (watchdog_active(wdog) && !imx2_wdt_is_running(wdev)) { > /*