linux-stable/drivers/watchdog
Ahmad Fatoum ce5020ff05 watchdog: f71808e_wdt: fix inaccurate report in WDIOC_GETTIMEOUT
[ Upstream commit 164483c735 ]

The fintek watchdog timer can configure timeouts of second granularity
only up to 255 seconds. Beyond that, the timeout needs to be configured
with minute granularity. WDIOC_GETTIMEOUT should report the actual
timeout configured, not just echo back the timeout configured by the
user. Do so.

Fixes: 96cb4eb019 ("watchdog: f71808e_wdt: new watchdog driver for Fintek F71808E and F71882FG")
Suggested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.kernel.org/r/5e17960fe8cc0e3cb2ba53de4730b75d9a0f33d5.1628525954.git-series.a.fatoum@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-26 11:48:38 +01:00
..
Kconfig watchdog: fix compile time error of pretimeout governors 2019-06-22 08:17:14 +02:00
Makefile Merge git://www.linux-watchdog.org/linux-watchdog 2016-10-13 16:44:20 -07:00
acquirewdt.c
advantechwdt.c
alim1535_wdt.c
alim7101_wdt.c
ar7_wdt.c
asm9260_wdt.c watchdog-asm9260: Delete owner assignment 2016-09-23 22:35:45 +02:00
aspeed_wdt.c watchdog: aspeed: fix hardware timeout calculation 2021-07-20 16:21:14 +02:00
at32ap700x_wdt.c
at91rm9200_wdt.c
at91sam9_wdt.c
at91sam9_wdt.h
ath79_wdt.c mips: separate extable.h, switch module.h to it 2016-10-05 18:36:18 -04:00
atlas7_wdt.c
bcm47xx_wdt.c
bcm63xx_wdt.c
bcm2835_wdt.c watchdog: bcm2835_wdt: Fix module autoload 2019-09-06 10:19:43 +02:00
bcm7038_wdt.c watchdog: constify watchdog_ops structures 2016-09-24 08:50:10 +02:00
bcm_kona_wdt.c watchdog: bcm281xx: Fix use of uninitialized spinlock. 2017-07-05 14:40:28 +02:00
bfin_wdt.c
booke_wdt.c
cadence_wdt.c watchdog: constify watchdog_ops structures 2016-09-24 08:50:10 +02:00
coh901327_wdt.c
cpu5wdt.c
cpwd.c
da9052_wdt.c
da9055_wdt.c
da9062_wdt.c watchdog: da9062: No need to ping manually before setting timeout 2020-06-30 15:38:26 -04:00
da9063_wdt.c watchdog: da9063_wdt: don't trigger watchdog too fast 2016-07-17 21:02:42 +02:00
davinci_wdt.c
diag288_wdt.c
digicolor_wdt.c
dw_wdt.c watchdog: dw_wdt: Read clock rate only once and validate it 2016-09-23 08:40:55 +02:00
ebc-c384_wdt.c
ep93xx_wdt.c
eurotechwdt.c
f71808e_wdt.c watchdog: f71808e_wdt: fix inaccurate report in WDIOC_GETTIMEOUT 2021-11-26 11:48:38 +01:00
gef_wdt.c
geodewdt.c
gpio_wdt.c watchdog: gpio_wdt: Fix missing platform_set_drvdata() in gpio_wdt_probe() 2016-07-27 10:47:43 +02:00
hpwdt.c watchdog: hpwdt: Remove legacy NMI sourcing. 2018-03-18 11:18:53 +01:00
i6300esb.c
iTCO_vendor.h
iTCO_vendor_support.c
iTCO_wdt.c watchdog: iTCO_wdt: constify iTCO_wdt_pm structure 2016-09-24 08:49:51 +02:00
ib700wdt.c
ibmasr.c
ie6xx_wdt.c
imgpdc_wdt.c
imx2_wdt.c watchdog: imx2_wdt: fix min() calculation in imx2_wdt_set_timeout 2019-10-17 13:42:07 -07:00
indydog.c
intel-mid_wdt.c
intel_scu_watchdog.c
intel_scu_watchdog.h
iop_wdt.c
it87_wdt.c
it8712f_wdt.c
ixp4xx_wdt.c
jz4740_wdt.c
kempld_wdt.c watchdog: kempld: fix gcc-4.3 build 2017-10-21 17:21:33 +02:00
ks8695_wdt.c
lantiq_wdt.c
lpc18xx_wdt.c watchdog: Fix possible use-after-free by calling del_timer_sync() 2021-07-20 16:21:13 +02:00
m54xx_wdt.c
machzwd.c
max63xx_wdt.c
max77620_wdt.c watchdog: max77620: Add support for watchdog timer 2016-07-17 21:01:07 +02:00
mei_wdt.c watchdog: mei_wdt: request stop on reboot to prevent false positive event 2017-01-06 10:40:16 +01:00
mena21_wdt.c
menf21bmc_wdt.c
meson_gxbb_wdt.c watchdog: meson: Fix the wrong value of left time 2019-12-05 15:34:10 +01:00
meson_wdt.c
mixcomwd.c
moxart_wdt.c
mpc8xxx_wdt.c
mt7621_wdt.c watchdog: mt7621_wdt: Remove assignment of dev pointer 2016-09-24 08:59:31 +02:00
mtk_wdt.c
mtx-1_wdt.c
mv64x60_wdt.c
ni903x_wdt.c
nuc900_wdt.c
nv_tco.c watchdog: add support for MCP78S chipset in nv_tco 2016-07-17 21:04:13 +02:00
nv_tco.h
octeon-wdt-main.c
octeon-wdt-nmi.S
of_xilinx_wdt.c watchdog: xilinx: Add clock support 2016-09-23 22:04:09 +02:00
omap_wdt.c watchdog: Fix OMAP watchdog early handling 2021-11-26 11:48:21 +01:00
omap_wdt.h
orion_wdt.c
pc87413_wdt.c
pcwd.c watchdog: pcwd: Utilize the module_isa_driver macro 2016-07-17 20:59:23 +02:00
pcwd_pci.c
pcwd_usb.c watchdog: pcwd_usb: fix NULL-deref at probe 2017-05-25 15:44:30 +02:00
pic32-dmt.c watchdog: pic32-dmt: Remove .owner field for driver 2016-07-25 12:02:32 +02:00
pic32-wdt.c watchdog: pic32-wdt: Fix return value check in pic32_wdt_drv_probe() 2016-07-25 12:02:43 +02:00
pika_wdt.c
pnx833x_wdt.c
pnx4008_wdt.c
pretimeout_noop.c watchdog: pretimeout: add noop pretimeout governor 2016-10-08 10:27:13 +02:00
pretimeout_panic.c watchdog: pretimeout: add panic pretimeout governor 2016-10-08 10:27:17 +02:00
qcom-wdt.c watchdog: qcom: Avoid context switch in restart handler 2020-12-29 13:45:01 +01:00
rc32434_wdt.c
rdc321x_wdt.c drivers: watchdog: rdc321x_wdt: Fix race condition bugs 2020-11-10 10:23:54 +01:00
renesas_wdt.c
retu_wdt.c
riowd.c
rn5t618_wdt.c watchdog: rn5t618_wdt: fix module aliases 2020-02-05 13:05:40 +00:00
rt2880_wdt.c watchdog: rt2880_wdt: Remove assignment of dev pointer 2016-09-24 08:59:23 +02:00
s3c2410_wdt.c watchdog: s3c2410: Fix infinite interrupt in soft mode 2017-04-12 12:41:22 +02:00
sa1100_wdt.c
sama5d4_wdt.c
sb_wdog.c
sbc60xxwdt.c watchdog: Fix possible use-after-free in wdt_startup() 2021-07-20 16:21:13 +02:00
sbc7240_wdt.c
sbc8360.c
sbc_epx_c3.c
sbc_fitpc2_wdt.c
sbsa_gwdt.c watchdog: sbsa: use 32-bit read for WCV 2018-05-30 07:50:34 +02:00
sc520_wdt.c watchdog: sc520_wdt: Fix possible use-after-free in wdt_turnoff() 2021-07-20 16:21:13 +02:00
sc1200wdt.c
sch311x_wdt.c
scx200_wdt.c
shwdt.c
sirfsoc_wdt.c watchdog: sirf: fix __iomem * warnings 2016-07-17 21:00:44 +02:00
smsc37b787_wdt.c
softdog.c watchdog: softdog: implement pretimeout support 2016-10-08 10:27:27 +02:00
sp805_wdt.c
sp5100_tco.c
sp5100_tco.h watchdog: sp5100_tco: Fix watchdog disable bit 2018-05-30 07:50:20 +02:00
st_lpc_wdt.c watchdog: st_wdt: Remove support for obsolete platforms 2016-09-24 08:59:49 +02:00
stmp3xxx_rtc_wdt.c
sun4v_wdt.c
sunxi_wdt.c
tangox_wdt.c watchdog: tangox: Set max_hw_heartbeat_ms instead of max_timeout 2016-07-18 12:10:21 +02:00
tegra_wdt.c watchdog: tegra: constify watchdog_ops structures 2016-09-24 08:50:03 +02:00
ts72xx_wdt.c
ts4800_wdt.c
twl4030_wdt.c
txx9wdt.c watchdog: txx9wdt: Add missing clock (un)prepare calls for CCF 2016-09-23 22:36:32 +02:00
ux500_wdt.c
via_wdt.c
w83627hf_wdt.c watchdog: constify watchdog_ops structures 2016-09-24 08:50:10 +02:00
w83877f_wdt.c watchdog: Fix possible use-after-free by calling del_timer_sync() 2021-07-20 16:21:13 +02:00
w83977f_wdt.c
wafer5823wdt.c
watchdog_core.c watchdog: core: Fix devres_alloc() allocation size 2016-09-23 08:37:14 +02:00
watchdog_core.h
watchdog_dev.c watchdog: Fix the race between the release of watchdog_core_data and cdev 2020-05-27 16:41:53 +02:00
watchdog_pretimeout.c watchdog: pretimeout: add pretimeout_available_governors attribute 2016-10-08 10:27:24 +02:00
watchdog_pretimeout.h watchdog: pretimeout: add pretimeout_available_governors attribute 2016-10-08 10:27:24 +02:00
wd501p.h
wdat_wdt.c ACPI: watchdog: Fix gas->access_width usage 2020-03-11 07:53:06 +01:00
wdrtas.c
wdt.c
wdt285.c
wdt977.c
wdt_pci.c
wm831x_wdt.c
wm8350_wdt.c
xen_wdt.c
ziirave_wdt.c watchdog: ziirave_wdt: Add support to upload the firmware. 2016-09-23 22:34:24 +02:00