bc44fa734c
It can be useful to delay setting the nowayout feature for a watchdog device. Moreover, not every driver (notably gpio_wdt) implements a nowayout module parameter/otherwise respects CONFIG_WATCHDOG_NOWAYOUT, and modifying those drivers carries a risk of causing a regression for someone who has two watchdog devices, sets CONFIG_WATCHDOG_NOWAYOUT and somehow relies on the gpio_wdt driver being ignorant of that (i.e., allowing one to gracefully close a gpio_wdt but not the other watchdog in the system). So instead, simply make the nowayout sysfs file writable. Obviously, setting nowayout is a one-way street. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20191105205118.11359-1-linux@rasmusvillemoes.dk Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org> |
||
---|---|---|
.. | ||
ABI | ||
EDID | ||
PCI | ||
RCU | ||
accounting | ||
admin-guide | ||
arm | ||
arm64 | ||
block | ||
bpf | ||
cdrom | ||
core-api | ||
cpu-freq | ||
crypto | ||
dev-tools | ||
devicetree | ||
doc-guide | ||
driver-api | ||
fault-injection | ||
fb | ||
features | ||
filesystems | ||
firmware-guide | ||
firmware_class | ||
fpga | ||
gpu | ||
hid | ||
hwmon | ||
i2c | ||
ia64 | ||
ide | ||
iio | ||
infiniband | ||
input | ||
ioctl | ||
isdn | ||
kbuild | ||
kernel-hacking | ||
leds | ||
livepatch | ||
locking | ||
m68k | ||
maintainer | ||
media | ||
mic | ||
mips | ||
misc-devices | ||
netlabel | ||
networking | ||
nios2 | ||
openrisc | ||
parisc | ||
pcmcia | ||
power | ||
powerpc | ||
process | ||
riscv | ||
s390 | ||
scheduler | ||
scsi | ||
security | ||
sh | ||
sound | ||
sparc | ||
sphinx | ||
sphinx-static | ||
spi | ||
target | ||
timers | ||
trace | ||
translations | ||
usb | ||
userspace-api | ||
virt | ||
virtual | ||
vm | ||
w1 | ||
watchdog | ||
x86 | ||
xtensa | ||
.gitignore | ||
COPYING-logo | ||
Changes | ||
CodingStyle | ||
DMA-API-HOWTO.txt | ||
DMA-API.txt | ||
DMA-ISA-LPC.txt | ||
DMA-attributes.txt | ||
IPMI.txt | ||
IRQ-affinity.txt | ||
IRQ-domain.txt | ||
IRQ.txt | ||
Kconfig | ||
Makefile | ||
SubmittingPatches | ||
atomic_bitops.txt | ||
atomic_t.txt | ||
bus-virt-phys-mapping.txt | ||
conf.py | ||
crc32.txt | ||
debugging-modules.txt | ||
debugging-via-ohci1394.txt | ||
digsig.txt | ||
docutils.conf | ||
dontdiff | ||
futex-requeue-pi.txt | ||
hwspinlock.txt | ||
index.rst | ||
io-mapping.txt | ||
io_ordering.txt | ||
irqflags-tracing.txt | ||
kobject.txt | ||
kprobes.txt | ||
kref.txt | ||
logo.gif | ||
lzo.txt | ||
mailbox.txt | ||
memory-barriers.txt | ||
nommu-mmap.txt | ||
padata.txt | ||
percpu-rw-semaphore.txt | ||
pi-futex.txt | ||
preempt-locking.txt | ||
rbtree.txt | ||
remoteproc.txt | ||
robust-futex-ABI.txt | ||
robust-futexes.txt | ||
rpmsg.txt | ||
speculation.txt | ||
static-keys.txt | ||
tee.txt | ||
this_cpu_ops.txt | ||
unaligned-memory-access.txt | ||
xz.txt |