24 Mar, 2018

1 commit

  • - Add SPDX identifier
    - Remove boiler plate license text
    - If MODULE_LICENSE and boiler plate does not match, go for boiler plate
    license

    Signed-off-by: Marcus Folkesson
    Acked-by: Adam Thomson
    Acked-by: Baruch Siach
    Acked-by: Charles Keepax
    Acked-by: Keiji Hayashibara
    Acked-by: Johannes Thumshirn
    Acked-by: Florian Fainelli
    Acked-by: Mans Rullgard
    Acked-by: Matthias Brugger
    Acked-by: Michal Simek
    Acked-by: Neil Armstrong
    Acked-by: Nicolas Ferre
    Acked-by: Thierry Reding
    Acked-by: Tomas Winkler
    Acked-by: Patrice Chotard
    Acked-by: William Breathitt Gray
    Reviewed-by: Eric Anholt
    Reviewed-by: Guenter Roeck
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Marcus Folkesson
     

12 Sep, 2015

1 commit

  • Pull watchdog updates from Wim Van Sebroeck:
    - new driver for NXP LPC18xx Watchdog Timer
    - new driver for SAMA5D4 watchdog timer
    - add support for MCP79 to nv_tco driver
    - clean-up and improvement of the mpc8xxx watchdog driver
    - improvements to gpio-wdt
    - at91sam9_wdt clock improvements
    ... and other small fixes and improvements

    * git://www.linux-watchdog.org/linux-watchdog: (25 commits)
    Watchdog: Fix parent of watchdog_devices
    watchdog: at91rm9200: Correct check for syscon_node_to_regmap() errors
    watchdog: at91sam9: get and use slow clock
    Documentation: dt: binding: atmel-sama5d4-wdt: for SAMA5D4 watchdog driver
    watchdog: add a driver to support SAMA5D4 watchdog timer
    watchdog: mpc8xxx: allow to compile for MPC512x
    watchdog: mpc8xxx: use better error code when watchdog cannot be enabled
    watchdog: mpc8xxx: use dynamic memory for device specific data
    watchdog: mpc8xxx: use devm_ioremap_resource to map memory
    watchdog: mpc8xxx: make use of of_device_get_match_data
    watchdog: mpc8xxx: simplify registration
    watchdog: mpc8xxx: remove dead code
    watchdog: lpc18xx_wdt_get_timeleft() can be static
    DT: watchdog: Add NXP LPC18xx Watchdog Timer binding documentation
    watchdog: NXP LPC18xx Watchdog Timer Driver
    watchdog: gpio-wdt: ping already at startup for always running devices
    watchdog: gpio-wdt: be more strict about hw_algo matching
    Documentation: watchdog: at91sam9_wdt: add clocks property
    watchdog: booke_wdt: Use infrastructure to check timeout limits
    watchdog: (nv_tco) add support for MCP79
    ...

    Linus Torvalds
     

10 Sep, 2015

1 commit


06 Aug, 2015

1 commit

  • With well over 200+ users of this api, there are a mere 12 users that
    actually checked the return value of this function. And all of them
    really didn't do anything with that information as the system or module
    was shutting down no matter what.

    So stop pretending like it matters, and just return void from
    misc_deregister(). If something goes wrong in the call, you will get a
    WARNING splat in the syslog so you know how to fix up your driver.
    Other than that, there's nothing that can go wrong.

    Cc: Alasdair Kergon
    Cc: Neil Brown
    Cc: Oleg Drokin
    Cc: Andreas Dilger
    Cc: "Michael S. Tsirkin"
    Cc: Wim Van Sebroeck
    Cc: Christine Caulfield
    Cc: David Teigland
    Cc: Mark Fasheh
    Acked-by: Joel Becker
    Acked-by: Alexandre Belloni
    Acked-by: Alessandro Zummo
    Acked-by: Mike Snitzer
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

17 Mar, 2015

2 commits


20 Oct, 2014

1 commit


18 Nov, 2013

2 commits

  • I just can't find any value in MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR)
    and MODULE_ALIAS_MISCDEV(TEMP_MINOR) statements.

    Either the device is enumerated and the driver already has a module
    alias (e.g. PCI, USB etc.) that will get the right driver loaded
    automatically.

    Or the device is not enumerated and loading its driver will lead to
    more or less intrusive hardware poking. Such hardware poking should be
    limited to a bare minimum, so the user should really decide which
    drivers should be tried and in what order. Trying them all in
    arbitrary order can't do any good.

    On top of that, loading that many drivers at once bloats the kernel
    log. Also many drivers will stay loaded afterward, bloating the output
    of "lsmod" and wasting memory. Some modules (cs5535_mfgpt which gets
    loaded as a dependency) can't even be unloaded!

    If defining char-major-10-130 is needed then it should happen in
    user-space.

    Signed-off-by: Jean Delvare
    Acked-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck
    Cc: Stephen Warren
    Cc: Mike Frysinger
    Cc: Wan ZongShun
    Cc: Ben Dooks
    Cc: Kukjin Kim
    Cc: Zwane Mwaikambo
    Cc: Jim Cromie

    Jean Delvare
     
  • of_match_ptr() is a macro used to avoid undefined reference error if
    CONFIG_OF is used to selectively compile in or out the
    data structure. It is defined as follows:

    #ifdef CONFIG_OF
    #define of_match_ptr(ptr) ptr
    #else
    #define of_match_ptr(ptr) NULL
    #endif

    In the case of this series, none of the drivers use CONFIG_OF macro to
    compile out the data structure (i.e., the data structure is always
    defined).
    Hence the use of of_match_ptr() does not make any sense. Thus removing
    it to make the code look simpler for readability.

    Signed-off-by: Sachin Kamat
    Acked-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Sachin Kamat
     

01 Mar, 2013

1 commit


29 Nov, 2012

3 commits

  • CONFIG_HOTPLUG is going away as an option so __devexit is no
    longer needed.

    Signed-off-by: Bill Pemberton
    Cc: Wim Van Sebroeck
    Cc: Wan ZongShun
    Cc: Ben Dooks
    Cc: Kukjin Kim
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devinit is no longer
    needed.

    Signed-off-by: Bill Pemberton
    Cc: Wim Van Sebroeck
    Cc: Wan ZongShun
    Cc: Ben Dooks
    Cc: Kukjin Kim
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
    needed.

    Signed-off-by: Bill Pemberton
    Cc: Wim Van Sebroeck
    Cc: Wan ZongShun
    Cc: Ben Dooks
    Cc: Kukjin Kim
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     

29 Mar, 2012

1 commit

  • Pull watchdog updates from Wim Van Sebroeck:
    - Removal of the Documentation/watchdog/00-INDEX file
    - Fix boot status reporting for imx2_wdt
    - clean-up sp805_wdt, pnx4008_wdt and mpcore_wdt
    - convert printk in watchdog drivers to pr_ functions
    - change nowayout module parameter to bool for every watchdog device
    - conversion of jz4740_wdt, pnx4008_wdt, max63xx_wdt, softdog,
    ep93xx_wdt, coh901327 and txx9wdt to new watchdog API
    - Add support for the WDIOC_GETTIMELEFT ioctl call to the new watchdog
    API
    - Change the new watchdog API so that the driver updates the timeout
    value
    - two fixes for the xen_wdt driver

    Fix up conflicts in ep93xx driver due to the same patches being merged
    through separate branches.

    * git://www.linux-watchdog.org/linux-watchdog: (33 commits)
    watchdog: txx9wdt: fix timeout
    watchdog: Convert txx9wdt driver to watchdog framework
    watchdog: coh901327_wdt.c: fix timeout
    watchdog: coh901327: convert to use watchdog core
    watchdog: Add support for WDIOC_GETTIMELEFT IOCTL in watchdog core
    watchdog: ep93xx_wdt: timeout is an unsigned int value.
    watchdog: ep93xx_wdt: Fix timeout after conversion to watchdog core
    watchdog: Convert ep93xx driver to watchdog core
    watchdog: sp805: Use devm routines
    watchdog: sp805: replace readl/writel with lighter _relaxed variants
    watchdog: sp805: Fix documentation style comment
    watchdog: mpcore_wdt: Allow platform_get_irq() to fail
    watchdog: mpcore_wdt: Use devm routines
    watchdog: mpcore_wdt: Rename dev to pdev for pointing to struct platform_device
    watchdog: xen: don't clear is_active when xen_wdt_stop() failed
    watchdog: xen: don't unconditionally enable the watchdog during resume
    watchdog: fix compiler error for missing parenthesis
    watchdog: ep93xx_wdt.c: fix platform probe
    watchdog: ep93xx: Convert the watchdog driver into a platform device.
    watchdog: fix set_timeout operations
    ...

    Linus Torvalds
     

28 Mar, 2012

2 commits


23 Feb, 2012

1 commit


07 Mar, 2010

1 commit


18 Jun, 2009

1 commit


08 Apr, 2009

1 commit

  • A pointer to at91wdt_probe is passed to the core via
    platform_driver_register and so the function must not disappear when the
    .init sections are discarded. Otherwise (if also having HOTPLUG=y)
    unbinding and binding a device to the driver via sysfs will result in an
    oops as does a device being registered late.

    An alternative to this patch is using platform_driver_probe instead of
    platform_driver_register plus removing the pointer to the probe function
    from the struct platform_driver.

    Signed-off-by: Uwe Kleine-König
    Cc: Andrew Victor
    Cc: Russell King
    Cc: Jean-Christophe PLAGNIOL-VILLARD
    Cc: Ilpo Jarvinen
    Cc: Andrew Morton
    Signed-off-by: Wim Van Sebroeck

    Uwe Kleine-König
     

15 Feb, 2009

1 commit

  • The recently merged AT91SAM9 watchdog driver uses the
    AT91SAM9X_WATCHDOG config variable, whereas the original version of
    the driver (and the platform support code) used AT91SAM9_WATCHDOG.
    This causes the watchdog platform_device to never be registered, and
    therefore the driver not to be initialized.

    This patch:
    - updates the platform support code to use AT91SAM9X_WATCHDOG.
    - includes to fix compile error (same fix as was applied
    to at91rm9200_wdt.c)
    - fixes comment regarding watchdog clock-rates in at91rm9200.

    Signed-off-by: Andrew Victor
    Signed-off-by: Russell King

    Andrew Victor
     

24 Jan, 2009

1 commit


27 Aug, 2008

1 commit


11 Aug, 2008

1 commit

  • This patch fixes the following compile error:

    ...
    CC drivers/watchdog/at91rm9200_wdt.o
    at91rm9200_wdt.c:188: error: 'at91_wdt_ioctl' undeclared here (not in a
    make[3]: *** [drivers/watchdog/at91rm9200_wdt.o] Error 1

    Reported-by: Adrian Bunk
    Signed-off-by: Adrian Bunk
    Signed-off-by: Wim Van Sebroeck

    Adrian Bunk
     

09 Aug, 2008

1 commit

  • Conflicts:

    drivers/watchdog/at91rm9200_wdt.c
    drivers/watchdog/davinci_wdt.c
    drivers/watchdog/ep93xx_wdt.c
    drivers/watchdog/ixp2000_wdt.c
    drivers/watchdog/ixp4xx_wdt.c
    drivers/watchdog/ks8695_wdt.c
    drivers/watchdog/omap_wdt.c
    drivers/watchdog/pnx4008_wdt.c
    drivers/watchdog/sa1100_wdt.c
    drivers/watchdog/wdt285.c

    Russell King
     

07 Aug, 2008

1 commit


06 Aug, 2008

1 commit

  • This brings the watchdog drivers into line with coding style.
    This patch takes cares of the indentation as described in chapter 1.
    Main changes:
    * Re-structure the ioctl switch call for all drivers as follows:
    switch (cmd) {
    case WDIOC_GETSUPPORT:
    case WDIOC_GETSTATUS:
    case WDIOC_GETBOOTSTATUS:
    case WDIOC_GETTEMP:
    case WDIOC_SETOPTIONS:
    case WDIOC_KEEPALIVE:
    case WDIOC_SETTIMEOUT:
    case WDIOC_GETTIMEOUT:
    case WDIOC_GETTIMELEFT:
    default:
    }

    This to make the migration from the drivers to the uniform watchdog
    device driver easier in the future.

    Signed-off-by: Wim Van Sebroeck

    Wim Van Sebroeck
     

27 May, 2008

1 commit


11 Apr, 2008

1 commit

  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
    prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable watchdog
    drivers, to re-enable auto loading.

    [dbrownell@users.sourceforge.net: more drivers; registration fixes]
    Signed-off-by: Kay Sievers
    Signed-off-by: David Brownell
    Cc: Wim Van Sebroeck
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kay Sievers
     

20 Oct, 2007

1 commit

  • remove asm/bitops.h includes

    including asm/bitops directly may cause compile errors. don't include it
    and include linux/bitops instead. next patch will deny including asm header
    directly.

    Cc: Adrian Bunk
    Signed-off-by: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     

18 Oct, 2007

1 commit