Skip to content

Commit 4c00e1e

Browse files
committed
Merge tag 'linux-watchdog-5.15-rc1' of git://www.linux-watchdog.org/linux-watchdog
Pull watchdog updates from Wim Van Sebroeck: - add Mediatek MT7986 & MT8195 wdt support - add Maxim MAX63xx - drop bd70528 support - rewrite ixp4xx to watchdog framework - constify static struct watchdog_ops for sl28cpld_wdt, mpc8xxx_wdt and tqmx86 - introduce watchdog_dev_suspend/resume - several fixes and improvements * tag 'linux-watchdog-5.15-rc1' of git://www.linux-watchdog.org/linux-watchdog: dt-bindings: watchdog: Add compatible for Mediatek MT7986 watchdog: ixp4xx: Rewrite driver to use core watchdog: Start watchdog in watchdog_set_last_hw_keepalive only if appropriate watchdog: max63xx_wdt: Add device tree probing dt-bindings: watchdog: Add Maxim MAX63xx bindings watchdog: mediatek: mt8195: add wdt support dt-bindings: reset: mt8195: add toprgu reset-controller header file watchdog: tqmx86: Constify static struct watchdog_ops watchdog: mpc8xxx_wdt: Constify static struct watchdog_ops watchdog: sl28cpld_wdt: Constify static struct watchdog_ops watchdog: iTCO_wdt: Fix detection of SMI-off case watchdog: bcm2835_wdt: consider system-power-controller property watchdog: imx2_wdg: notify wdog core to stop ping worker on suspend watchdog: introduce watchdog_dev_suspend/resume watchdog: Fix NULL pointer dereference when releasing cdev watchdog: only run driver set_pretimeout op if device supports it watchdog: bd70528 drop bd70528 support
2 parents 192ad3c + 41e73fe commit 4c00e1e

File tree

17 files changed

+213
-318
lines changed

17 files changed

+213
-318
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/maxim,max63xx.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Maxim 63xx Watchdog Timers
8+
9+
allOf:
10+
- $ref: "watchdog.yaml#"
11+
12+
maintainers:
13+
- Marc Zyngier <[email protected]>
14+
- Linus Walleij <[email protected]>
15+
16+
properties:
17+
compatible:
18+
oneOf:
19+
- const: maxim,max6369
20+
- const: maxim,max6370
21+
- const: maxim,max6371
22+
- const: maxim,max6372
23+
- const: maxim,max6373
24+
- const: maxim,max6374
25+
26+
reg:
27+
description: This is a 1-byte memory-mapped address
28+
maxItems: 1
29+
30+
required:
31+
- compatible
32+
- reg
33+
34+
unevaluatedProperties: false
35+
36+
examples:
37+
- |
38+
wdt: watchdog@50000000 {
39+
compatible = "maxim,max6369";
40+
reg = <0x50000000 0x1>;
41+
timeout-sec = <10>;
42+
};
43+
44+
...

Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Required properties:
1313
"mediatek,mt7622-wdt", "mediatek,mt6589-wdt": for MT7622
1414
"mediatek,mt7623-wdt", "mediatek,mt6589-wdt": for MT7623
1515
"mediatek,mt7629-wdt", "mediatek,mt6589-wdt": for MT7629
16+
"mediatek,mt7986-wdt", "mediatek,mt6589-wdt": for MT7986
1617
"mediatek,mt8183-wdt": for MT8183
1718
"mediatek,mt8516-wdt", "mediatek,mt6589-wdt": for MT8516
1819
"mediatek,mt8192-wdt": for MT8192

drivers/watchdog/Kconfig

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,6 @@ config SOFT_WATCHDOG_PRETIMEOUT
168168
watchdog. Be aware that governors might affect the watchdog because it
169169
is purely software, e.g. the panic governor will stall it!
170170

171-
config BD70528_WATCHDOG
172-
tristate "ROHM BD70528 PMIC Watchdog"
173-
depends on MFD_ROHM_BD70528
174-
select WATCHDOG_CORE
175-
help
176-
Support for the watchdog in the ROHM BD70528 PMIC. Watchdog trigger
177-
cause system reset.
178-
179-
Say Y here to include support for the ROHM BD70528 watchdog.
180-
Alternatively say M to compile the driver as a module,
181-
which will be called bd70528_wdt.
182-
183171
config BD957XMUF_WATCHDOG
184172
tristate "ROHM BD9576MUF and BD9573MUF PMIC Watchdog"
185173
depends on MFD_ROHM_BD957XMUF

drivers/watchdog/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ obj-$(CONFIG_WATCHDOG_SUN4V) += sun4v_wdt.o
204204
obj-$(CONFIG_XEN_WDT) += xen_wdt.o
205205

206206
# Architecture Independent
207-
obj-$(CONFIG_BD70528_WATCHDOG) += bd70528_wdt.o
208207
obj-$(CONFIG_BD957XMUF_WATCHDOG) += bd9576_wdt.o
209208
obj-$(CONFIG_DA9052_WATCHDOG) += da9052_wdt.o
210209
obj-$(CONFIG_DA9055_WATCHDOG) += da9055_wdt.o

drivers/watchdog/bcm2835_wdt.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,13 @@ static int bcm2835_wdt_probe(struct platform_device *pdev)
205205
if (err)
206206
return err;
207207

208-
if (pm_power_off == NULL) {
209-
pm_power_off = bcm2835_power_off;
210-
bcm2835_power_off_wdt = wdt;
208+
if (of_device_is_system_power_controller(pdev->dev.parent->of_node)) {
209+
if (!pm_power_off) {
210+
pm_power_off = bcm2835_power_off;
211+
bcm2835_power_off_wdt = wdt;
212+
} else {
213+
dev_info(dev, "Poweroff handler already present!\n");
214+
}
211215
}
212216

213217
dev_info(dev, "Broadcom BCM2835 watchdog timer");

drivers/watchdog/bd70528_wdt.c

Lines changed: 0 additions & 291 deletions
This file was deleted.

drivers/watchdog/iTCO_wdt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ static int iTCO_wdt_set_timeout(struct watchdog_device *wd_dev, unsigned int t)
362362
* Otherwise, the BIOS generally reboots when the SMI triggers.
363363
*/
364364
if (p->smi_res &&
365-
(SMI_EN(p) & (TCO_EN | GBL_SMI_EN)) != (TCO_EN | GBL_SMI_EN))
365+
(inl(SMI_EN(p)) & (TCO_EN | GBL_SMI_EN)) != (TCO_EN | GBL_SMI_EN))
366366
tmrval /= 2;
367367

368368
/* from the specs: */

0 commit comments

Comments
 (0)