linux/drivers/watchdog
Linus Torvalds 41bc10cabe stream_open related patches for Linux 5.2
https://lore.kernel.org/linux-fsdevel/CAHk-=wg1tFzcaX2v9Z91vPJiBR486ddW5MtgDL02-fOen2F0Aw@mail.gmail.com/T/#m5b2d9ad3aeacea4bd6aa1964468ac074bf3aa5bf
 -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCgAuFiEECVWwJCUO7/z+QjZbZsp4hBP2dUkFAlzR1UgQHGtpcnJAbmV4
 ZWRpLmNvbQAKCRBmyniEE/Z1SZBiEACGw1LzUmjV9eBYFjqaUkgX/Zfcu42D4Ek2
 8MuWnNdRabtpGQq0LccYlfoL3yH5xECp14IkCgJvkjqoZ3CcqWcv6uDxf0WtnUqZ
 wPx1RYZykb4RZj2A6/ndhInReP4AlXICyTVulKb+BquVkemMvmXX8k+bkr/msKfT
 9jdKWFIn+ANNABt3y2D7ywZvs9mkxIx+Fti+tVV4BFBeGfUuj4ArZBOHnngRnIk/
 XYlQ7FVzENSPSB+3GvL34jTGEzo8suPHKhHQlIhtcd5hwzVRZKE2sdVXsCc6/WbY
 YnT32gmT1/+cUuDl1mZSiQY5R4Xkb07k6/jNrdmjQpwmWbZu90cuRhb+JBXwnmjZ
 2Wgy3sfwYISDxtePukg1iYePlHlVlGTYqMo3AQrTBs/gEwCKWrsKQb98mRxlf1YK
 e2mdtmq6upYoorLFQesfRgrCg4GTBiPkrR3amXsFgJ2O5fhV6R98ZdGSv4kip19f
 ZNoc/t1EtKGwyAJwjINduv36E3RSHODWwSPtSnmSS1ieCGToY1SI3bVUkFM4C0tO
 5GMdSugHgXRGGVbTd/VftndJm6Wtj8b1j8c/1Vh04Q8qbKKJDRTDzAbK1v8oLaDh
 UXAKMIc8uY4caZy3/bTAB2Ou9dibrSi8Oc+LwZqJlwIcbkwn/IGNvmwtWv4ehorE
 N7EhCFZsFQ==
 =Mavg
 -----END PGP SIGNATURE-----

Merge tag 'stream_open-5.2' of https://lab.nexedi.com/kirr/linux

Pull stream_open conversion from Kirill Smelkov:

 - remove unnecessary double nonseekable_open from drivers/char/dtlk.c
   as noticed by Pavel Machek while reviewing nonseekable_open ->
   stream_open mass conversion.

 - the mass conversion patch promised in commit 10dce8af34 ("fs:
   stream_open - opener for stream-like files so that read and write can
   run simultaneously without deadlock") and is automatically generated
   by running

        $ make coccicheck MODE=patch COCCI=scripts/coccinelle/api/stream_open.cocci

   I've verified each generated change manually - that it is correct to
   convert - and each other nonseekable_open instance left - that it is
   either not correct to convert there, or that it is not converted due
   to current stream_open.cocci limitations. More details on this in the
   patch.

 - finally, change VFS to pass ppos=NULL into .read/.write for files
   that declare themselves streams. It was suggested by Rasmus Villemoes
   and makes sure that if ppos starts to be erroneously used in a stream
   file, such bug won't go unnoticed and will produce an oops instead of
   creating illusion of position change being taken into account.

   Note: this patch does not conflict with "fuse: Add FOPEN_STREAM to
   use stream_open()" that will be hopefully coming via FUSE tree,
   because fs/fuse/ uses new-style .read_iter/.write_iter, and for these
   accessors position is still passed as non-pointer kiocb.ki_pos .

* tag 'stream_open-5.2' of https://lab.nexedi.com/kirr/linux:
  vfs: pass ppos=NULL to .read()/.write() of FMODE_STREAM files
  *: convert stream-like files from nonseekable_open -> stream_open
  dtlk: remove double call to nonseekable_open
2019-05-07 12:15:13 -07:00
..
acquirewdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
advantechwdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
alim1535_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
alim7101_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
ar7_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
armada_37xx_wdt.c watchdog: armada_37xx_wdt: use do_div for u64 division 2018-10-13 15:19:43 +02:00
asm9260_wdt.c watchdog: asm9260_wdt: make array mode_name static, shrinks object size 2018-12-22 12:15:31 +01:00
aspeed_wdt.c aspeed: watchdog: Set bootstatus during probe 2018-04-16 10:22:40 +02:00
at91rm9200_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
at91sam9_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
at91sam9_wdt.h watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
ath79_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
atlas7_wdt.c
bcm47xx_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
bcm63xx_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
bcm2835_wdt.c bcm2835-pm: Move bcm2835-watchdog's DT probe to an MFD. 2019-01-09 16:55:06 +01:00
bcm7038_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
bcm_kona_wdt.c watchdog: bcm281xx: convert to DEFINE_SHOW_ATTRIBUTE 2018-12-22 12:15:32 +01:00
booke_wdt.c watchdog: fix a small number of "watchog" typos in comments 2018-10-02 13:32:25 +02:00
cadence_wdt.c watchdog: simplify getting .drvdata 2018-05-21 21:24:40 +02:00
coh901327_wdt.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
cpu5wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
cpwd.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
da9052_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
da9055_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
da9062_wdt.c watchdog: da9062: remove unused code 2018-06-06 10:45:33 +02:00
da9063_wdt.c watchdog: da9063: remove duplicated timeout_to_sel calls 2018-06-07 12:41:43 +02:00
davinci_wdt.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
diag288_wdt.c
digicolor_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
dw_wdt.c watchdog: dw: remove useless pr_fmt 2019-03-02 15:28:18 +01:00
ebc-c384_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
ep93xx_wdt.c
eurotechwdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
f71808e_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
ftwdt010_wdt.c watchdog: ftwdt010: Make interrupt optional 2017-12-28 20:45:02 +01:00
gef_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
geodewdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
gpio_wdt.c watchdog: gpio: change order for setting default timeout 2018-03-03 17:04:15 +01:00
hpwdt.c watchdog/hpwdt: Update driver version. 2018-12-22 12:15:31 +01:00
i6300esb.c watchdog: i6300esb: remove info message and version number 2017-12-28 20:45:18 +01:00
ib700wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
ibmasr.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
ie6xx_wdt.c watchdog: ie6xx_wdt: convert to DEFINE_SHOW_ATTRIBUTE 2018-12-22 12:15:32 +01:00
imgpdc_wdt.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
imx2_wdt.c watchdog: imx2_wdt: Switch to SPDX identifier 2018-08-02 15:57:11 +02:00
indydog.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
intel_scu_watchdog.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
intel_scu_watchdog.h
intel-mid_wdt.c
iop_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
it87_wdt.c
it8712f_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
iTCO_vendor_support.c watchdog: iTCO_wdt: Remove unused hooks 2018-10-02 13:32:25 +02:00
iTCO_vendor.h watchdog: iTCO_wdt: Remove unused hooks 2018-10-02 13:32:25 +02:00
iTCO_wdt.c watchdog: iTCO_wdt: Remove unused hooks 2018-10-02 13:32:25 +02:00
ixp4xx_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
jz4740_wdt.c watchdog: JZ4740: Drop module remove function 2018-05-14 23:58:23 +01:00
Kconfig linux-watchdog 5.1-rc1 tag 2019-03-11 11:22:15 -07:00
kempld_wdt.c include/linux/compiler*.h: make compiler-*.h mutually exclusive 2018-08-22 17:31:34 -07:00
ks8695_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
lantiq_wdt.c watchdog: lantiq: add get_timeleft callback 2018-10-02 13:32:27 +02:00
loongson1_wdt.c
lpc18xx_wdt.c watchdog: lpc18xx: remove assignment of unused ret-value 2018-03-03 17:04:16 +01:00
m54xx_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
machzwd.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
Makefile linux-watchdog 5.1-rc1 tag 2019-03-11 11:22:15 -07:00
max63xx_wdt.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
max77620_wdt.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
mei_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
mena21_wdt.c watchdog: mena21_wdt: Convert to GPIO descriptors 2018-12-22 12:15:34 +01:00
menf21bmc_wdt.c
menz69_wdt.c watchdog: add driver for the MEN 16z069 IP-Core 2018-08-02 15:57:12 +02:00
meson_gxbb_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
meson_wdt.c watchdog: meson: allow setting timeout in devicetree 2018-03-03 17:04:14 +01:00
mixcomwd.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
mlx_wdt.c watchdog: mlx-wdt: introduce a watchdog driver for Mellanox systems. 2019-03-02 15:28:20 +01:00
moxart_wdt.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
mpc8xxx_wdt.c watchdog: mpc8xxx: provide boot status 2018-10-13 15:19:38 +02:00
mt7621_wdt.c watchdog: mt7621_wdt/rt2880_wdt: Fix compilation problem 2019-01-07 10:10:35 +01:00
mtk_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
mtx-1_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
mv64x60_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
ni903x_wdt.c
nic7018_wdt.c
npcm_wdt.c watchdog: Add Nuvoton NPCM watchdog driver 2018-03-24 10:19:39 +01:00
nuc900_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
nv_tco.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
nv_tco.h
octeon-wdt-main.c
octeon-wdt-nmi.S
of_xilinx_wdt.c watchdog: simplify getting .drvdata 2018-05-21 21:24:40 +02:00
omap_wdt.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
omap_wdt.h
orion_wdt.c watchdog: orion_wdt: Mark watchdog as active when running at probe 2018-08-02 15:57:09 +02:00
pc87413_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
pcwd_pci.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
pcwd_usb.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
pcwd.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
pic32-dmt.c
pic32-wdt.c
pika_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
pm8916_wdt.c watchdog: Add pm8916 watchdog driver 2018-12-22 12:15:33 +01:00
pnx833x_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
pnx4008_wdt.c watchdog: pnx4008: make use of timeout-secs provided in devicetree 2018-03-03 17:04:13 +01:00
pretimeout_noop.c
pretimeout_panic.c
qcom-wdt.c watchdog: qcom: Add suspend/resume support 2019-02-02 14:06:36 +01:00
rave-sp-wdt.c watchdog: Add RAVE SP watchdog driver 2018-01-08 10:08:36 +00:00
rc32434_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
rdc321x_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
renesas_wdt.c watchdog: renesas_wdt: don't keep timer value during suspend/resume 2018-12-22 12:15:32 +01:00
retu_wdt.c
riowd.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
rn5t618_wdt.c
rt2880_wdt.c watchdog: mt7621_wdt/rt2880_wdt: Fix compilation problem 2019-01-07 10:10:35 +01:00
rtd119x_wdt.c watchdog: Add Realtek RTD1295 2017-12-28 20:44:39 +01:00
rza_wdt.c watchdog: rza_wdt: Support longer timeouts 2018-10-02 13:32:29 +02:00
s3c2410_wdt.c
sa1100_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
sama5d4_wdt.c watchdog: sama5d4: fix timeout-sec usage 2018-10-02 13:32:26 +02:00
sb_wdog.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
sbc60xxwdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
sbc7240_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
sbc8360.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
sbc_epx_c3.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
sbc_fitpc2_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
sbsa_gwdt.c watchdog/sbsa: Use arch_timer_read_counter instead of arch_counter_get_cntvct 2019-04-30 16:09:27 +01:00
sc520_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
sc1200wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
sch311x_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
scx200_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
shwdt.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
sirfsoc_wdt.c watchdog: sirfsoc: allow setting timeout in devicetree 2018-03-03 17:04:13 +01:00
smsc37b787_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
softdog.c
sp805_wdt.c watchdog: sp805: Add clock-frequency property 2018-08-06 17:12:41 +02:00
sp5100_tco.c watchdog: sp5100_tco: Add support for recent FCH versions 2018-01-21 12:56:37 +01:00
sp5100_tco.h watchdog: sp5100_tco: Add support for recent FCH versions 2018-01-21 12:56:37 +01:00
sprd_wdt.c watchdog: sprd_wdt: Remove redundant dev_err call in sprd_wdt_probe() 2018-08-02 15:57:12 +02:00
st_lpc_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
stm32_iwdg.c watchdog: stm32: add pclk feature for stm32mp1 2018-08-02 15:57:09 +02:00
stmp3xxx_rtc_wdt.c watchdog: stmp3xxx: Switch to SPDX identifier 2018-08-02 15:57:11 +02:00
stpmic1_wdt.c watchdog: stpmic1: Add STPMIC1 watchdog driver 2019-01-16 14:01:19 +00:00
sun4v_wdt.c
sunxi_wdt.c watchdog: sunxi: allow setting timeout in devicetree 2018-03-03 17:04:13 +01:00
tangox_wdt.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
tegra_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
tqmx86_wdt.c watchdog: tqmx86: Fix a couple IS_ERR() vs NULL bugs 2019-01-07 10:10:35 +01:00
ts72xx_wdt.c
ts4800_wdt.c watchdog: ts4800: release syscon device node in ts4800_wdt_probe() 2018-10-22 10:16:28 +02:00
twl4030_wdt.c
txx9wdt.c
uniphier_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
ux500_wdt.c
via_wdt.c watchdog: fix a small number of "watchog" typos in comments 2018-10-02 13:32:25 +02:00
w83627hf_wdt.c watchdog: w83627hf_wdt: Add quirk for Inves system 2018-12-09 15:03:28 +01:00
w83877f_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
w83977f_wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
wafer5823wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
watchdog_core.c watchdog: document watchdog_init_timeout() wdd parameter 2017-12-28 20:45:56 +01:00
watchdog_core.h
watchdog_dev.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
watchdog_pretimeout.c
watchdog_pretimeout.h
wd501p.h
wdat_wdt.c watchdog: simplify getting .drvdata 2018-05-21 21:24:40 +02:00
wdrtas.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
wdt285.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
wdt977.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
wdt_pci.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
wdt.c *: convert stream-like files from nonseekable_open -> stream_open 2019-05-06 17:46:41 +03:00
wm831x_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
wm8350_wdt.c watchdog: add SPDX identifiers for watchdog subsystem 2018-03-24 10:19:40 +01:00
xen_wdt.c watchdog: xen_wdt: remove info message and version number 2017-12-28 20:45:44 +01:00
ziirave_wdt.c
zx2967_wdt.c