Re: [PATCH v1] watchdog: intel-mid_wdt: Add WATCHDOG_NOWAYOUT support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/29/19 10:42 AM, Ferry Toth wrote:
Op 30-09-2019 om 15:15 schreef Guenter Roeck:
On 9/24/19 7:31 AM, Andy Shevchenko wrote:
Normally, the watchdog is disabled when /dev/watchdog is closed, but if
CONFIG_WATCHDOG_NOWAYOUT is defined, then it means that the watchdog should
remain enabled. So we should keep it enabled if CONFIG_WATCHDOG_NOWAYOUT
is defined.

Reported-by: Razvan Becheriu <razvan.becheriu@xxxxxxxxxxxxxx>
Cc: Ferry Toth <fntoth@xxxxxxxxx>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

Reviewed-by: Guenter Roeck <linux@xxxxxxxxxxxx>

Any chance of this going in v5.4?

Good question. There are a few other pending bug fixes, including one
which fixes a build failure. Wim, any chance you can queue those up ?

Thanks,
Guenter

---
  drivers/watchdog/intel-mid_wdt.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/watchdog/intel-mid_wdt.c b/drivers/watchdog/intel-mid_wdt.c
index 2cdbd37c700c..470213abfd3d 100644
--- a/drivers/watchdog/intel-mid_wdt.c
+++ b/drivers/watchdog/intel-mid_wdt.c
@@ -134,6 +134,7 @@ static int mid_wdt_probe(struct platform_device *pdev)
      wdt_dev->timeout = MID_WDT_DEFAULT_TIMEOUT;
      wdt_dev->parent = dev;
+    watchdog_set_nowayout(wdt_dev, WATCHDOG_NOWAYOUT);
      watchdog_set_drvdata(wdt_dev, dev);
      ret = devm_request_irq(dev, pdata->irq, mid_wdt_irq,








[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux